'use strict'
// たこ足配線よくないと思います
let input = require("fs").readFileSync("/dev/stdin", "utf8");
const Nums = input.split(' ');
const A = Nums[0];
const B = Nums[1];
let ans = 0;
if(A == B){
	ans = 1;
}else {
	ans = 1 + Math.ceil((B-A)/(A-1));
}


console.log(ans);