a = list(map(int, input().split()))
b = a[:-1]
c = reversed(b)
for i in c:
    print(i, end = " ")