n = int(input())
lista = []
for i in range(n):
value = input()
lista.append(value)
for o in reversed(lista):
print(o)