#把单词作为列表元素存起来,然后倒序,再连接成字符串即可
a=input()
b=a.split()
b.reverse()
c=" ".join(b)
print(c)