open Batteries

let solve x y =
  let rec search n last =
    let next = y / last in
    let n_iter = next - 1 in
    if n_iter <= 0 then n
    else List.max @@ List.init n_iter (fun i -> search (n + 1) ((i + 2) * last))
  in search 1 x

let () = Scanf.scanf "%d %d" solve |> print_int