The first line contains an integer![]()
, denoting the number of test cases.
Each test case contains an integer![]()
in one line.
For each test case:
If no solution exists, print "-1" (without quotes) in one line.
Otherwise, print one integer![]()
in the first line denoting the length of the permutation you construct. Then print
integers
,
in the second line denoting the permutation you construct.