import sys sys stdin readlines for in xrange len -1 -1 -1 sys stdout w

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