a= list(map(int, input().strip().split())) a.reverse() for e in a:print(e)