#2022/5/31 15:59
n=list(map(int,input().split()))
list_1=[x for x in reversed(n)]
list_2=' '.join(str(i) for i in list_1)
print(list_2)