Farmer John has $N$ $(1 \leq N \leq 2 \cdot 10^5)$ cows in a line $a$. The $i$'th cow from the front of line $a$ is labeled an integer $a_i$ ($1 \leq a_i \leq N$). Multiple cows may be labeled the same integer.
FJ will construct another line $b$ in the following manner:
FJ wants to construct line $b$ such that the sequence of labels in $b$ from front to back is lexicographically greatest (see the footnote).
Before FJ constructs line $b$, he can perform the following operation at most once:
Given that FJ optimally performs the aforementioned operation at most once, output the lexicographically greatest label sequence of $b$ he can achieve.
Each input will consist of $T$ ($1 \leq T \leq 100$) independent test cases.
The first line contains $T$.
The first line of each test case contains $N$.
The second line of each test case contains $N$ space-separated integers $a_1, a_2, \ldots, a_N$.
It is guaranteed that the sum of $N$ over all test cases does not exceed $10^6$.
For each test case, output the lexicographically greatest $b$ on a new line.
Recall that a sequence $s$ is lexicographically greater than a sequence $t$ if and only if one of the following holds: