"use strict";
function Main(input) {
    let Ln = input.split(/\s/).map((v) => v - 0);
    let a = Ln[0], b = Ln[1], c = Ln[2];
    let d = Math.floor(b / a);
    console.log(Math.min(d, c));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
