shu=input()
ru=list(map(int,shu.split()))
ru.pop()
ru.reverse()
print(" ".join(map(str,ru)))