"use strict"
 
function Main(input) {
  input = input.trim().split(' ').map(Number);
  const A = input[0];
  const B = input[1];
 
  let ret = 0;
  let tmp = 0;
  while(true){
    if(tmp >= B || B === 0 || B === 1) break;
    if(ret === 0) {
      tmp += A;
    } else {
      tmp += A-1;
    }
    ret++
  }
  console.log(ret);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));