Write a program that prints all the combinations of zeros and ones such that , for a given .
The input consists of a natural .
Your program must print all the combinations in lexicographical order (look the instance), one per line, the characters separated by spaces.
Author: Salvador Roura
Input
3
Output
0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1