while True:
    try:
        s = input()
        s_list = s.split()
        print(" ".join(s_list[::-1]))
    except Exception:
        break