Skyline#12306

Skyline

1 second
256 megabytes
Hard

You're given an integer . You're asked to determine any valid permutation of \{1,2,3,...,n\} such that:

If no such permutation exists print .

Input

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

The first line of each test case contains single integer (3 \le n \le 10^5) – the length of the permutation .

It's guaranteed that \sum n \le 10^5.

Output

For each test case, if such permutation exists then output any valid permutation, otherwise output .

Examples

Example 1

Loading
Loading

Scoring

  1. Subtask ( points): (3 \le n \le 6)

  2. Subtask ( points): (n=50)

  3. Subtask ( points): (n=10^5)

  4. Subtask ( points): No additional constraints.