a=list(map(int,input().split()))
b=a[::-1]
for i in b:
    print(i,end=" ")