while True:
    try:
        s = input()
        print(s[::-1])
    except:
        break