You are given an array $$$a$$$ consisting of $$$n$$$ integers.
For every integer $$$k$$$ from $$$1$$$ to $$$n$$$, you have to do the following:
For every $$$k$$$, you choose the element which you move so that the value you print is the maximum possible.
Calculate the value you print for every $$$k$$$.
The first line contains one integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases.
Each test case consists of two lines:
Additional constraint on the input: the sum of $$$n$$$ over all test cases does not exceed $$$2 \cdot 10^5$$$.
For each test case, print $$$n$$$ integers. The $$$i$$$-th of these integers should be equal to the maximum value you can print if $$$k=i$$$.
4713 5 10 14 8 15 1361000000000 1000000000 1000000000 1000000000 1000000000 100000000014227 5
15 28 42 50 63 73 78 1000000000 2000000000 3000000000 4000000000 5000000000 6000000000 42 7 12
Let's consider the first test case from the statement:
| Name |
|---|


