#71Easy
Array in reverse
Time: 1 s · Memory: 256 MB
- Arrays
Statement
You are given an array of numbers. Print its elements in reverse order: .
Input format
The first line contains (). The second line contains integers ().
Output format
A single line with numbers — the array in reverse order.
Examples
Input
3 6 5 7
Output
7 5 6
Input
1 42
Output
42
Note
First read all numbers into an array, then print them with a loop whose index goes down from the last element to the first.
