import sys

s = list(input().split())
for c in s[::-1]:
    print(c,end=' ')