function Main(input) {
    input = input.split(" ");
    A = Number(input[0]);
    B = Number(input[1]);
    C = Number(input[2]);
    can = Math.floor(B/A);
    if(C <= can) console.log(C);
    else console.log(can)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));