while True:
    try:
        temp = input().split(" ")
        temp.reverse()
        print(" ".join(temp))
    except:
        break