function main(input) {
    var inputs = input.split("\n");
    var ABC = inputs.shift().split(" ");
    var A = ABC.shift();
    var B = ABC.shift();
    var C = ABC.shift();
    console.log(Math.min(C, Math.floor(B / A)))
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));