人生苦短

    try:
        print(input()[::-1])
    except EOFError:
        break