Power of 2
Any even number can be expressed as sum of positive powers of 2 . For example 30 = 2 + 4 + 8 + 16 . Given a positive even number N, output the powers of 2 in ascending order whose sum is N .
Input Format
An even integer n
Output Format
Output the positive powers of 2 in ascending order whose sum is N .
Constraints
2 <= N <= 10^9
N is even
Sample Input
Input 1
10
Input 2
18
Input 3
98
Input 4
64
Sample Output
Output 1
2 8
Output 2
2 16
Output 3
2 32 64
Output 4
64
1
1