let (x,y) = Scanf.scanf "%d %d\n" (fun x y -> (x,y))

let pr x = print_endline (string_of_int x)

let z = (float_of_int y) /.(float_of_int x)

let w = (log z) /. (log 2.0) +. 1.

let () = w
         |> floor
         |> int_of_float
         |> pr
