def reverse():
    v = input()
    if v.isdigit():
        reverse()
        print(v)
    else:
        return


reverse()