You are given an array \(A\) of \(N\) elements which is a permutation. You are required to perform the following operation exactly one time:
Your task is to find the lexicographically smallest array \(A\) you can achieve.
Input format
Output format
Print \(T\) lines. For each test case:
Constraints
\(1 \leq T \leq 20000\)
\(2 \leq N \leq 200000\)
\(1 \leq A_i \leq N \forall i \in [1,N]\)
Sum of \(N\) over all test cases does not exceed 200000
-