IntermediateRating 1200
All Subsets
Print every subset of the given distinct numbers, one per line, in order of the bitmasks 0 .. 2ⁿ−1 (bit i selects the i-th number). Print EMPTY for the empty set.
Input
One line of up to 8 numbers.
Output
2ⁿ lines.
Sample 1
Input
1 2 3
Output
EMPTY 1 2 1 2 3 1 3 2 3 1 2 3
Sample 2
Input
7
Output
EMPTY 7
Output appears here