let reads f =  stdin.ReadLine().Split() |> Array.map f
let f a b =
    let rec loop a b n = match (1 + (a * n) - n) with
                         | c when c < b -> loop a b (n+1)
                         | _ -> n
    loop a b 0
    
reads int
|> (fun [|a;b|] -> f a b)
|> printfn "%d"