Skip to content
UPEEC

Reverse an Array

Easy#arrays· solved by 0 · time limit 2.0 s

Print the array in reverse order.

Input

nn, then nn integers.

Output

The reversed array on one line.

Constraints

1≤n≤1051 \le n \le 10^5

Sample 1

Input

5
1 2 3 4 5

Output

5 4 3 2 1

Sign in or join free to run and submit your solution.