s=input().split()  #接收输入内容
s1=s[::-1]  #把输入内容倒序排列
for x in s1:
    print(x,end=" ")  #输出元素之间用空格分隔