Reverse the list

Given n strings, you are asked to print them in reverse order.
The first line of the input contains a single integer n. The next n lines contain the n texts.
The program should output those strings in the reverse order.
Input
8
Hi!
My name is
What?
My name is
Who?
My name is
Chika-chika
Slim Shady


Output
Slim Shady
Chika-chika
My name is
Who?
My name is
What?
My name is
Hi!
 
To check your solution you need to sign in
Sign in to continue