string = input()
words = string.split(' ')
ans = ""
for word in words[::-1]:
    ans += word + " "
print(ans)