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≤T≤20000
2≤N≤200000
1≤Ai≤N∀i∈[1,N]
Sum of N over all test cases does not exceed 200000
-