'use strict';

process.stdin.resume();
process.stdin.setEncoding('utf-8');

let inputString = '';
let currentLine = 0;

process.stdin.on('data', inputStdin => {
    inputString += inputStdin;
});

process.stdin.on('end', _ => {
    inputString = inputString.trim().split('\n').map(string => {
        return string.trim();
    });

    main();
});

function readline() {
    return inputString[currentLine++];
}

function print(s) {
    process.stdout.write(s);
}

function println(s) {
    console.log(s);
}


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);
}