Please find a permutation P such that Pi≠Ai for all i.
输入格式
There are multiple test cases.
The first line contains a single integer TTT (1≤T≤1000001 \leq T \leq 100\,0001≤T≤100000), denoting the number of test cases.
For each test case:
The first line contains a single integer nnn (1≤n≤1000001 \leq n \leq 100\, 0001≤n≤100000).
The second line contains nnn integers A1,A2,…,AnA_1,A_2,\dots,A_nA1,A2,…,An (1≤Ai≤n1 \leq A_i \leq n1≤Ai≤n).
It is guaranteed that the sum of nnn does not exceed 500000500\,000500000.
输出格式
For each test case:
If the permutation does not exist, output “NO” in one line.
Otherwise output “YES” in the first line, then output nnn integers in the second line, denoting the permutation P1,P2,…,PnP_1,P_2,\dots,P_nP1,P2,…,Pn.