list1=input().split()
list2=list1[::-1]
for i in list2:
    print(i,end=' ')