while True:
    try:
        str2num = input()[::-1]
        print(str2num)
    except:
        break