You had one thing to do, one thing! That is the only thing, I might add, that might have saved our lives.
- Walter White, Breaking Bad
Jesse has a permutation of integers from to . His job is simple: to maximize the number of positions , for which . To achieve that, Jesse can do the following operation exactly once:
- Color some elements of the permutation in yellow, and all the remaining elements in blue. There has to be at least one yellow and at least one blue element.
- Then, separately sort yellow and blue numbers.
For example, for permutation , Jesse can mark numbers yellow, and blue. After sorting yellow and blue elements separately, Jesse will get permutation .
Jesse's score in the end is the number of positions , for which . Find the maximal score Jesse can achieve and some way to achieve it.
Input data
The first line contains a single integer () - the number of test cases. The description of test cases follows.
The first line of each test case contains a single integer () - the length of the permutation.
The second line of each test case contains integers (, all are distinct) - elements of the permutation.
It is guaranteed that the sum of over all test cases does not exceed .
Output data
For every test case, in the first line, output the maximal score Jesse can achieve.
In the second line, output a single integer () - the number of elements Jesse should color yellow.
In the third line, output integers (, all are distinct) - the positions of elements that you are going to color in yellow.
If there are several ways to obtain the maximum score, output any of them.
Example
stdin
3
2
2 1
4
2 1 4 3
6
3 5 4 2 6 1
stdout
0
1
1
4
2
1 2
4
3
1 3 4
Explanation
In the first test case, for permutation , Jesse can mark yellow and blue. After sorting it will remain being , with score .
In the second test case, for permutation , Jesse can mark yellow and blue. After sorting the permutation will become , with score .