We call a non-negative number
good if its binary representation is palindromic. For example, is good because its binary representation is which is palindromic while is not good because its binary representation is which is not palindromic.
Recall that, a string is said to be palindromic if it reads the same backward as forward.
You are given a number . You have to express as a sum of at most good numbers. If there exist multiple answers, print any one of them.
Input Format
- The first line of the input contains a single integer denoting the number of test cases. The description of test cases follows.
- The first and only line of each testcase contains a single integer .
Output Format
For each testcase, print a single integer (), denoting the number of good numbers. In the next line, print a sequence of good numbers whose sum is equal to . If there are multiple such sequences, print any of them.
Constraints
Sample Input 1
2
24
4
Sample Output 1
2
21 3
4
1 1 1 1
Explanation
Test case :
- is good because which is palindromic.
- is good because which is palindromic.
Test case :
- is good because which is palindromic.
Here denotes binary representation of the number.
ConversionConversion EmoticonEmoticon