It's classical to match two arrays to minimize the loss function, such as Network flow and Kuhn-Munkres algorithm. Here comes a small test.
You are given two sequences

with length

.

.
Now you are allowed to rearrage sequence $b$ arbitrarily. Formally, you can assign a permutation

between

to

and do the following transformation:

.
Finally you should minimize the loss function
%3D%5Csum%20%5Climits_%7Bi%3D0%7D%5E%7Bn-1%7D%20%5Csqrt%7B%7Ca_i-b_i%7C%7D)
.
Because the time limit is too strict to solve, you don't need to find the exact value of
%7D)
. Denote the minimal value is

and your result is

(where

means the

-th test case), you will be accepted if:
输入描述:
There are multiple test cases. The first line of the input contains an integer
, indicating the number of test cases. For each test case:
The first line contains an integer
indicating the length of sequences. The second line contains $n$ integers, describing the sequence $b$.
It's guaranteed that the sum of $n$ over all test cases does not exceed
.
Notice: For each
,
is selected from
independently with equal probability. But the length of arrays in each test case can be assigned manually.
输出描述:
For each test case, output
integers in a line, indicating the sequence
after rearranging.