def run(): sts = input("") if 1 <= len(sts) <= 10000: # print(len(sts)) a = len(sts) - 1 while a > -1: print(sts[a], end="") a -= 1 run()