简单才是最好的

人生苦短,我用Python

word_list = input().split(' ')[::-1]
for i in word_list:
    print(i,end=' ')