Hide

Problem A
Öfugsnúið

Languages en is ja

Jóna needs a program. The program should read in integers and print them in reverse order. Jóna asks for your help.

Input

The first line contains the integer n. Then there is a list of n integers, each on their own line. Each integer will be between 0 and 109.

Output

Print the list in the reverse order compared to the input.

Scoring

Group

Points

Constraints

1

25

n=1

2

25

1n5

3

25

1n103

4

25

1n2105

Sample Input 1 Sample Output 1
5
1
2
3
4
5
5
4
3
2
1
Sample Input 2 Sample Output 2
3
10
12
9
9
12
10
Hide

Please log in to submit a solution to this problem

Log in