function Main(arg) {
 
    var A = arg.split(" ")[0]-0;
    var B = arg.split(" ")[1]-0;

    if (B === 1) {
        console.log(1);
        return;
    }

    console.log(Math.floor((B-1)/(A-1)));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));