strlist = input().split()

strlist.reverse()

for i in strlist:
    print(i, end=' ')