-->
while True : a = input() try : int(a) except : print('不是整数哦') else : b = '' for x in range(int(len(a))) : b = b + a[int(len(a)) - 1 - x] print(b)