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