let () = Scanf.scanf "%d %d" (
        fun a b -> 
                if (b - a) mod (a - 1) = 0 then
                        (b - a) / (a - 1) + 1
                else
                        (b - a) / (a - 1) + 2
) |> Printf.printf "%d\n"
