Bob is a businessman and Alice is his assistant. They planned to collect the raw materials in $$$n$$$ cities, and then meet in one of the cities to process and sell the products.
Specifically, their plan is determined by the following steps:
Alice knows Bob is greedy, so she knows Bob's strategy for choosing the meeting city. However, Bob often mistreats Alice, which makes Alice unhappy. So in the first step, Alice wants that the total income of the plan is as small as possible finally.
Can you help Alice plan the city sequence? Please output the city sequence $$$p_1,p_2,\cdots p_n$$$ to make the finally total income of the plan as small as possible.
Each test data of this problem has multiple cases.
The first line contains an positive integer $$$T$$$, indicating the number of cases.
For each case:
It is guaranteed that sum of $$$n$$$ over all cases is not greater than $$$10^5$$$. That is, $$$\sum n \le 10^5$$$.
For each case, output a line, which contains $$$n$$$ integers, $$$p_1,p_2,\cdots p_n$$$, indicating the order planned by Alice to make the total income as small as possible. If there are multiple solutions, you can print any of them.
2 4 1 1 4 5 1 5 1 9 1 9 8 1 9 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 8 3 2 7
3 1 2 4 3 8 4 2 5 9 7 1 6
| Название |
|---|


