Given $N$ integers, print them in reverse of the input order, space-separated on one line.
Input
Line 1: $N$ ($1 \le N \le 1000$). Line 2: $N$ integers in $[-10000, 10000]$.
Output
Print the integers in reversed order.
Example 1
Input
5 3 5 1 9 2
Output
2 9 1 5 3
Example 2
Input
3 10 -5 20
Output
20 -5 10
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.