let scan_int () = Scanf.scanf " %d" (fun x -> x)
let print_int n = Printf.printf "%d\n" n

let () =
  let a = scan_int() and b = scan_int() in
  let ans =
    if b < a then 1 
    else 1 + (b-2) / (a-1) in
  print_int ans 