Reverse an Array
Reverse the order of the elements in an array.
Input
The first line contains \(N\). The second line contains \(N\) integers \(A_i\).
The input satisfies:
- \(1 \le N \le 1000\)
- \(0 \le A_i \le 1000\)
Output
Print the reversed array on one line with elements separated by single spaces.
Example
Input
1
9
Output
9
Comments