Choose distinct integers from 1 to N and collect them into one sequence. For every choice of three distinct chosen numbers a, b, c, the value a⊕b⊕c must not be 0, where ⊕ is the bitwise exclusive or (XOR).
Find a sequence of maximum length that satisfies this condition.
The first line contains the number of test cases T (1≤T≤100).
Each of the next T lines contains one integer N (1≤N≤20).
Print the answer for each test case on two lines.
If several sequences reach the maximum length, print only the one that is lexicographically smallest after sorting in increasing order.