l = list(map(int, input().split()))
l1 = reversed(l)
for i in l1:
    print(i, end = ' ')