Hard Game#12292

Hard Game

1 second
256 megabytes
Medium

Fateh is a very angry boy.

Fateh was playing a game during summer. It was fps game CubeWarfare. It has rounds , and he can get a point each round. But since he was very angry, when he gains negative point, he smashes the laptop and can't play next rounds. His friend Osman doesn't want him to lose, so he decided to rearrange rounds. Since he is busy, he asked for your help to do it.

Input

The first line contains an integer (1 \le t \le 10^4) — the number of test cases.

Each test case consists of two lines:

The first line contains a single integer n(1 \le n \le 2 \cdot 10^5) — the length of the array.

The second line contains integers a_{1},a_{2},…,a_{n} (-10^9 \le a_{i} \le 10^9) — the points that he will gain after each round.

It is guaranteed that the sum of across all test cases does not exceed 2 \cdot 10^5.

Output

For each test case, output any permutation of the array — b_1,b_2,b_3,...,b_n that achieves the maximum value of total points Fateh gets.

If such permutation doesn't exist output .

Examples

Example 1

Loading
Loading

Note

The result of first test case goes as following :

  1. Fateh gets points , Total: points.

  2. Fateh gets points , Total of points.

  3. Fateh gets points , Total of points.

  4. Fateh gets points , He gets angry and has a score of , Now he'll skip the next two games , and since no game remains he cannot play anymore.

The maximum score he gains is .

Scoring

  1. Subtask ( points) : (1 \le n \le 8) and (1 \le t \le 100)

  2. Subtask ( points) : (0 \le a_i \le 10^9)

  3. Subtask ( points) : No additional constraints