lst=list(map(int,input().split()))
lst.pop()
lst.reverse()
for i in lst:
    print(i,end=" ")