function Main(input) {
  input = input.split("\n");
  tmp = input[0].split(" ");
  var answer = 0;
  var plug = tmp[1];
  tap = tmp[0]-1;
  if(tmp[1] != 1){
    plug = tmp[1]-tmp[0];
    answer++;
    while(plug > 0){
      plug = plug-tap;
      answer++;
    }
  }
  console.log(answer);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));