def fun(input_number): str_r = str(input_number) s = str_r[::-1] return s if __name__ == '__main__': str1= input() str_t=fun(str1) print(str_t)