while True:
    
    try:
        str_input = input()
        print(str_input[::-1])

    except:
        break