Call an array $$$b$$$ of length $$$m$$$ a derangement if the following property holds:
For example,
You are given an array $$$a$$$ of length $$$n$$$. In one operation, you can delete an element from $$$a$$$. The order of the remaining elements is preserved after each deletion.
Output whether it is possible to perform some (possibly none) operations such that the remaining elements form a derangement. If it is possible, output any possible remaining array. The remaining array must be non-empty.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 100$$$). The description of the test cases follows.
The first line of each test case contains an integer $$$n$$$ ($$$1 \leq n \leq 100$$$) — the length of array $$$a$$$.
The second line of each test case contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n$$$ ($$$1 \leq a_i \leq n$$$) — denoting the array $$$a$$$.
For each test case, on a new line, if it is possible to perform operations such that the remaining array is a derangement, output YES. Otherwise, output NO.
You can output in any case (upper or lower). For example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as positive responses.
If your response was positive, output two more lines in the following format:
332 2 354 5 5 2 411
NO YES 4 4 5 2 4 NO
In the second test case, we can delete one $$$5$$$ from the array so that it becomes $$$[4,5,2,4]$$$. It can be shown this array is a derangement. This is not the only solution – it can be shown that the original array $$$[4,5,5,2,4]$$$ is another valid solution.
| Name |
|---|


