import sys for line in sys.stdin: a = line.strip().split() b=list(a[0]) b.reverse() print(''.join(b))