function main(arg) {
	arg = arg.trim().split(' ');
	var b = parseInt(arg[1], 10),
        a = parseInt(arg[0], 10),
    	x = 1, out = 0;
  	for (var i = 0; x < b; i++){
    	x += a-1;
      	out += 1; 
    }
  console.log(out)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));