import sys

str=input()
a=str.split(' ')
if len(a)==1:
    print(''.join(a))
else:
    s=a[::-1]
    for i in s:
        print(i,end=' ')