eolymp
bolt
Try our new interface for solving problems
Problems

Initial order

Initial order

Array of n integers is given to the program input in reverse order - that is, in order from the last to the first element. Restore the original order of the elements in the array.

Input

The first line contains a positive integer n. The next line contains n integers. All numbers do not exceed 100 by absolute value.

Output

Print the elements of the array in one line, restoring the original order of its elements.

Time limit 1 second
Memory limit 128 MiB
Input example #1
7
6 0 -7 2 -3 5 7
Output example #1
7 5 -3 2 -7 0 6
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"