a=list(map(int,input().split()))
a.pop()
a.reverse()
for i in range(len(a)):
    print(a[i],end=' ')