S = input(); for i in range(len(S)): sys.stdout.write(S[-i])