Reverse array

For a given array reverse its order.

Input

In the first line there will be a number of the data sets t. In the next t lines data sets follows. Each data set is a line of numbers separated by spaces. First number ni is the length of the array. Next ni numbers are the values in array.

Output

For ith data set write values from array in reversed order. Numbers should be separated by spaces and answers for data sets should be separated by a new line.

Example

Input:
2
7 1 2 3 4 5 6 7
3 3 2 11

Output:
7 6 5 4 3 2 1
11 2 3

Please log in to submit your solution.