S = input() print(''.join(reversed(S)))