Олимпиадный тренинг

Задача 42259. Power of Two Generator


Задача

Темы: Вложенные циклы
The power of two generator works as follows. Every second, starting from the first, it prints on the screen all powers of two whose value does not exceed the current second.
An example of the first numbers that the generator produces:
1
1 2
1 2
1 2 4
...


Given the number n, print the first n numbers that the generator will print on the screen.

Input
The program receives as input number (n <= 103).

Imprint
Print the answer to the problem.
 
 
Examples
# Input Output
1 5 1 1 2 1 2 
2 1 1