for x in list(open('../fd/0'))[::-1]:print' '.join(x.split()[::-1])