import sys s = sys.stdin.readlines() for x in xrange(len(s)-1,-1,-1): sys.stdout.write(s[x]+'\n')