#!/usr/bin/python import sys l = [] while (1): s = sys.stdin.readline() if (not s): break s = s.strip() l.append(s) l.reverse() for i in l: print(i)
#!/usr/bin/python import sys l = [] while (1): s = sys.stdin.readline() if (not s): break s = s.strip() l.append(s) l.reverse() for i in l: print(i)