import sys import string L = input("").split(" ") for m in range(len(L) - 1, -1, -1): print(L[m])