You are given an integer . Construct a permutation using every integer from to exactly once.
The score of is the sum of the bitwise OR of every adjacent pair:
For , define .
Let
be the sum of the integers from to . Construct a permutation satisfying .
The input is given in the following format:
For each test case, print a permutation satisfying the condition on one line.
Each test case is given in the following format:
If no such permutation exists, print -1 instead. If several valid permutations exist, print any one of them.