in_str = str(input()) out_arr = [] out_str = "" for i in range(len(in_str)): out_arr.append(in_str[i]) for i in range(len(in_str)-1,-1,-1):#左闭右开 out_str += out_arr[i] print(out_str)