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