Lavender is too lazy to come up with a good problem, so he will recycle one from two years ago!
Given an array $$$a$$$ of $$$n$$$ integers. Initially, you can choose a number $$$s$$$, and mark the s-th element as used. Then, you need to perform the following operation $$$n-1$$$ times:
You have to determine if it is possible to perform all $$$n-1$$$ operations. If so, output any valid operation sequence.
Each test consists of multiple test cases. The first line contains an integer t ($$$1\leq t\leq 100$$$) — the number of test cases. Then follows the description of the test cases.
The first line of each test case contains the number n ($$$2\leq n\leq 2000$$$) — the number of elements in the array.
The second line of each test case contains n numbers $$$a_{1},a_{2},\ldots a_{n}$$$ ($$$1\leq a_{i}\leq 10^{9}$$$).
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$2000$$$.
For each test case, if there is no solution, then output "NO" (without quotes).
Otherwise, output "YES" (without quotes), and then output a number $$$s$$$ on the first line, denoting the first used element. In the next $$$n-1$$$ lines, output the numbers $$$u_{i}$$$ and $$$v_{i}$$$ ($$$u\neq v$$$), denoting the two chosen number for operation $$$i$$$.
821 4499 7 1 13510 2 31 44 73587 6 81 44 32562 35 33 79 1656 51 31 69 42552 63 25 21 51233 40 3 11 31 43 37 8 50 5 12 22
YES11 2YES11 41 22 3YES11 51 41 31 2YES11 41 31 24 5YES11 31 51 22 4YES11 41 51 22 3YES11 22 51 33 4YES11 99 121 111 101 66 71 22 82 51 31 4
In the first testcase, you can also choose $$$s=2$$$, $$$u_{1}=2$$$, and $$$v_{1}=1$$$.
In the second testcase:
| Name |
|---|


