#H2025A. Arahc and an Array

Arahc and an Array

Description

Arahc has a sequence ana_n of size n(1n105)n\,(1\leq n\leq 10^5). He wants you to sort it in ascending order.

You can perform at most 3×1053 \times 10^5 operations. In each operation, you select an index ii, and reverse the substrings a1i1a_{1 \ldots i-1} and ai+1na_{i+1 \ldots n} (If exists). For example, if the sequence is 1,4,3,5,3,21, 4, 3, 5, 3, 2 and you select i=4i = 4, the sequence will become 3,4,1,5,2,33, 4, 1, 5, 2, 3.

If no solution within 3×1053 \times 10^5 operations exists, output 1-1.

Format

Input

The first line contains a single integer T(1T5)T\,(1\leq T\leq 5), the number of test cases. For each test case:

The first line contains a single integer n(1n105)n\,(1\leq n\leq 10^5), the size of the sequence.

The second line contains nn integers a1,a2,,an(1ain)a_1, a_2, \ldots, a_n\,(1\leq a_i\leq n).

Output

For each test case:

If no solution within 3×1053 \times 10^5 operations exists, output 1-1.

Otherwise, the first line contains a single integer k(1k3×105)k\,(1\leq k\leq 3 \times 10^5), the number of operations you will perform.

The next line contains kk integers i1,i2,,ik(1ijn)i_1, i_2, \ldots, i_k\,(1\leq i_j\leq n), where iji_j is the index you select in the jj-th operation.

Samples

2
6
1 4 3 5 3 2
2
2 1
5
5 3 6 2 4
-1