const main = input =>{

    const arr = input.split(" ").map(n => Number(n));
    const num = arr[0];
    const need = arr[1];

    var output = 0;
    var result = 0;

    for(var i = 0; i < need; i++ ){
        result ++;
        output += num;
        if(output >= need){
            break;
        }

        output --;
    }

    console.log(result);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));