function Main(input) {
    var A = parseInt(input[0], 10);
    var B = parseInt(input[1], 10);

    if (B === 1) {
        return console.log(0);
    } else if (B <= A) {
        console.log(1);
    } else {
        console.log(1 + Math.ceil((B - A) / (A - 1)));
    }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));