#53769: python簡單解


angus7315197@gmail.com (Noncoder159738)


def re(ReList):
    for i in range(len(ReList)):
        ReList[i] = ReList[i][::-1]    # 反轉每一項字串
    return " ".join(ReList)    # 以空格隔開傳回去
while True:
    try:    # 異常處理
        n = list(map(str, input().split()))    # 輸入存成串列
        print(re(n))
    except EOFError:
        break