Write a program that, given different words , prints all the subsets that can be made up with the words.
Input consists of a number , followed by .
Print all the subsets that can be made up with .
You can print in any order both the solutions and the elements inside each solution.
Input
3 hola adeu hi
Output
{}
{hi}
{adeu}
{adeu,hi}
{hola}
{hola,hi}
{hola,adeu}
{hola,adeu,hi}