function main(input) {
  const a = Number(input.split(" ")[0]);
  const b = Number(input.split(" ")[1]);
  var sum = 1
  var tapCount = 0
  while(true){
    if(sum >= b){
      break;
    }
    sum = sum - 1 + a;
    tapCount++;
  }
  console.log(tapCount);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
