You are given a permutation $$$p$$$ of size $$$n$$$. You want to maximize the number of subarrays of $$$p$$$ that are permutations. In order to do so, you must perform the following operation exactly once:
For example, if $$$p=[5,1,4,2,3]$$$ and we choose $$$i=2$$$, $$$j=3$$$, the resulting array will be $$$[5,4,1,2,3]$$$. If instead we choose $$$i=j=5$$$, the resulting array will be $$$[5,1,4,2,3]$$$.
Which choice of $$$i$$$ and $$$j$$$ will maximize the number of subarrays that are permutations?
NOTE:
The first line of the input contains a single integer $$$t\ (1\le t\le 10)$$$ — the number of test cases. The description of the test cases follows.
The first line of each test case contains a single integer $$$n\ (1\le n\le 10^6)$$$ — the size of the permutation.
The next line of each test case contains $$$n$$$ integers $$$p_1,p_2,\cdots p_n$$$ ($$$1\le p_i\le n$$$, all $$$p_i$$$ are distinct) — the elements of the permutation p.
For each test case, output two integers $$$i$$$ and $$$j$$$ ($$$1\le i,j \le n$$$) — the indices to swap in $$$p$$$.
If there are multiple solutions, print any of them.
831 2 331 3 251 3 2 5 464 5 6 1 2 398 7 6 3 2 1 4 5 9107 10 5 1 9 8 3 2 6 4108 5 10 9 2 1 3 4 6 7102 3 5 7 10 1 8 6 4 9
3 3 1 2 1 4 1 3 9 9 4 9 2 4 1 5
| Name |
|---|


