word = input().split()
word.reverse()
print(' '.join(word))

先生成列表在反转