function main() {

    var valor = readline();
    var array = valor.split([' ']);
    for (var i = 0; i < array.length; i++) {
        array[i] = parseInt(array[i]);
    }
    var audioOutputs = array[0];
    var friends = array[1];
    var flag = false;
    var aux = 1;
    var adapters;
    for (var j = 0; flag === false; j++) {
        adapters = audioOutputs * aux - j;
        if (adapters >= friends) {
            flag = true;
        } else {
            aux = aux + 1;
        }
    }

    println(j);
}