There are multiple cases. The first line of the input contains a single positive integer, indicating the number of cases.
For each case, the first line of the input contains a single integer, the length of the sequence
. The second line contains
integers
.
It's guaranteed that the sum ofover all cases does not exceed
.
For each case print one line containingintegers, indicating the sequence
. Your output must satisfy
for each
.
If there are multiple valid answers, you may print any of them. If there is no valid answer, print"-1" (without quotes) instead.