while True:
    try:
        want_str = input()
        want_list = want_str.split(" ")
        want_list.reverse()
        res = " ".join(want_list)
        print(res)
    except EOFError:
        break