while True:
    try:
        x = input()
        y = x[::-1]
        print(''.join(y))
    except:
        break