let rec hasamiuchi k1 k2 a = let left, right = k1 *. a, k2 *. a in let cleft = ceil left in if cleft <= right then int_of_float (a +. cleft) else hasamiuchi k1 k2 (a+.1.) let k1_k2 la lb = let la, lb = float_of_int la, float_of_int lb in let lamin, lamax = la -. 0.5, la +. 0.5 in let lbmin, lbmax = lb -. 0.5, lb +. 0.5 in let k1_la = (100. -. lamax) /. lamax +. 0.0000000001 in let k1_lb = lbmin /. (100. -. lbmin) in let k2_la = (100. -. lamin) /. lamin in let k2_lb = lbmax /. (100. -. lbmax) in let k1 = max k1_la k1_lb in let k2 = min k2_la k2_lb in k1, k2 let () = let k1, k2 = Scanf.sscanf (read_line()) ("%i %i") k1_k2 in let ans = hasamiuchi k1 k2 1. in print_int ans; print_endline ""