We say that a sequence of n integers a_1, a_2, …, a_n is a palindrome if for all 1 ≤ i ≤ n, a_i = a_n-i+1. You are given a sequence of n integers a_1, a_2, …, a_n and you have to find, if it exists, a cycle permutation so that the sequence a_(1), a_(2), …, a_(n) is a palindrome.
A permutation of 1, 2, …, n is a bijective function from \1, 2, …, n\ to \1, 2, …, n\. We say that a permutation is a cycle permutation if 1, (1), ^2(1), …, ^n-1(1) are pairwise different numbers. Here ^m(1) denotes ((… _m times(1) …)).
Input
The input consists of multiple test cases. The first line contains a single integer t (1 ≤ t ≤ 3 · 10^4) — the number of test cases. Description of the test cases follows.The first line of each test case contains an integer n (2 ≤ n ≤ 2 · 10^5) — the size of the sequence.The second line of each test case contains n integers a_1, …, a_n (1 ≤ a_i ≤ n).The sum of n for all test cases is at most 2 · 10^5.
Output
For each test case, output one line with YES if a cycle permutation exists, otherwise output one line with NO.If the answer is YES, output one additional line with n integers (1), (2), …, (n), the permutation. If there is more than one permutation, you may print any.