while True:
    st = input()
    if st == "END":
        break

    print(st[::-1])
38394362bd4812896951afcbeb47c258fc2f9d67
<mask token>

while True:
    st = input()
    if st == 'END':
        break
    print(st[::-1])

while True:
    st = input()
    if st == "END":
        break

    print(st[::-1])