s=list(input()) s.reverse() print(''.join(s))