def math():
    i_put = input().strip()
    for i in i_put[::-1]:
        print(i, end='')
    print()


if __name__ == '__main__':
    math()

fff8e5a3cf11a64c1bbb32877ccae87085d97e87
<mask token>

def math():
    i_put = input().strip()
    for i in i_put[::-1]:
        print(i, end='')
    print()


<mask token>

def math():
    i_put = input().strip()
    for i in i_put[::-1]:
        print(i, end='')
    print()


if __name__ == '__main__':
    math()
