Koishi found a positive integer sequence $$$a = [a_1, a_2, \cdots, a_n]$$$ of length $$$n$$$ on the road, satisfying $$$1\le a_i\le n$$$. She then computed the prefix maximum sequence $$$b = [b_1, b_2, \cdots, b_n]$$$, where $$$b_i$$$ is the maximum of the first $$$i$$$ elements of $$$a$$$:
$$$$$$b_i = \max\{a_1, a_2, \cdots, a_i\} = \max_{1\le j\le i}\{a_j\}$$$$$$
After obtaining both sequences, Koishi merged them together, defining a sequence $$$c$$$ of length $$$2n$$$ as $$$c = [a_1, a_2, \cdots, a_n, b_1, b_2, \cdots, b_n]$$$, and sorted $$$c$$$ in non-decreasing order.
Being the girl of the unconscious, Koishi lost the values of $$$a$$$ and $$$b$$$, and only the sequence $$$c$$$ remains.
Being the girl of the unconscious, Koishi has given the sequence $$$c$$$ to you — the cutest college student of the 21st century — hoping that you can find any valid sequence $$$a$$$. There may be multiple valid sequences; you only need to output any one of them. There may also be no valid sequence, in which case you should report that no solution exists.
The first line contains an integer $$$T$$$ — the number of test cases. The next $$$T$$$ sections each describe one test case:
It is guaranteed that $$$1\le \sum n\le 3\times 10^5$$$.
For each test case:
"Yes" and "No" are case-insensitive. For example, "Yes", "YES", "yEs" are all accepted as positive answers, and "No", "NO", "nO" are all accepted as negative answers.
5 3 1 1 2 2 3 3 3 1 1 1 1 2 3 6 1 1 1 1 1 4 4 4 5 5 5 5 5 1 1 1 2 3 4 5 5 5 5 9 2 3 3 4 4 5 8 9 9 9 9 9 9 9 9 9 9 9
Yes 1 2 3 No Yes 1 1 4 5 1 4 No Yes 9 9 8 2 4 4 3 5 3