```while True:
    try:
        s = list(input())
        print(''.join(s[::-1]))
    except:
        break