function Main(input) {
    var input_arr = input.split("\n");
    var input_arr_line0 = input_arr[0].split(" ");
    var a = input_arr_line0[0];
    var b = input_arr_line0[1];
    var c = input_arr_line0[2];

    var x = Math.floor(b / a);
    console.log(Math.min(c, x));
}

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