while True:
    try:
        char1 = input().lower()
        char2 = char1[::-1]
        print(''.join(char2))
    except:
        break