#14. 輪符雨

輪符雨

Background

XCPC ONLINE is a next-generation VR virtual game. In this world, you will experience crafting iron, refining copper, molding silver, collecting gold, and might even become a legendary figure.

Today, you successfully logged into the XCPC NUAA server and received a starter pack.

Problem Statement

You have obtained a non-decreasing array aa of length nn (meaning that for all i<ji < j, a[i]a[j]a[i] \leq a[j]) and have been granted a magical ability:

  • You can choose two integers ii and jj such that 1i<jn1 \leq i < j \leq n and perform the following operation: increase a[i]a[i] by 11 and decrease a[j]a[j] by 11.

For example, if the array a=[1,3,5]a = [1, 3, 5], and you choose i=1i = 1 and j=3j = 3 and use the magic, it becomes a=[2,3,4]a = [2, 3, 4].

The use of magic is restricted. The XCPC system prefers non-decreasing arrays, so after each use of the magic, the array aa must remain non-decreasing.

Your task is to randomly apply this operation on valid i,ji, j pairs until it is no longer possible to use the magic. Finally, print the contents of the array aa after all operations have been completed.

Input Format

This problem contains multiple test cases.

  • The first line contains an integer TT, the number of test cases.

For each test case:

  • The first line contains an integer nn (1n2×106)(1 \leq n \leq 2 \times 10^6), representing the length of the array aa.
  • The second line contains nn integers aia_i (1ai109)(1 \leq a_i \leq 10^9), representing the initial values of the array.

It is guaranteed that the total sum of nn over all test cases does not exceed 2×1062 \times 10^6.

Output Format

For each test case, output nn integers representing the contents of the array aa after it is no longer possible to apply the magic.

Example

Input

1
2
1 3

Output

2 2