Power Permutation#12208

Power Permutation

1 second
256 megabytes
Medium

You're given an integer . Construct any permutation such that the count of where 1 \le i \le n-1 for which p_i^{p_{i+1}} is even equals the count of for which p_i^{p_{i+1}} is odd.

Input

The first line contains single integer (1 \le t \le 10^4) – the number of test cases.

The only line of each test case contains single integer (1 \le n \le 2 \cdot 10^5).

It's guaranteed that the sum of for all test cases where has a valid answer doesn't exceed 10^5.

Output

For each test case, if there exists such permutation then print such p_1, p_2, \ldots, p_n otherwise print .

Examples

Example 1

Loading
Loading

Note

In the first case, there's no such permutation.

In the second case, we have:

  1. 2^1 = 2, which is even,

  2. 1^3 = 1, which is odd.

Count of even is equal to count of odd, thus a valid permutation.

Scoring

  1. Subtask ( points): 1 \le n \le 10

  2. Subtask ( points): is even

  3. Subtask ( points): is odd

  4. Subtask ( points): No additional constraints