function main(input) {
    const args = input.split(' ');
    var A = parseInt(args[0], 10);
    var B = parseInt(args[1], 10);
    var C = parseInt(args[2], 10);

    if(A * C <= B) {
        console.log(C)
    } else {
        console.log(Math.floor(B / A));
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
