s = input().strip()
words = s.split()

words.reverse()
print(" ".join(words))