function Main(input) {
  lines = input.split("\n");
  line = lines[0].split(" ")
  a = line[0] * 1
  b = line[1] * 1
  ans = 0
  ans = Math.ceil((b - 1) / (a - 1)) 
  console.log(ans)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
