[<AutoOpen>]
module Program

open System

let read f = stdin.ReadLine() |> f
let reada f = stdin.ReadLine().Split() |> Array.map f
let reads f = stdin.ReadLine().Split() |> Array.toList |> List.map f

[<EntryPoint>]
let main _ =
    let [a;b] = reads int
    let f k = a + (a - 1) * (k - 1)
    Seq.initInfinite f
    |> Seq.findIndex (fun x -> x >= b)
    |> printfn "%i"
    0