function Main(input) {
	tmp = input.split("\n")[0].split(" ");
	var a = parseInt(tmp[0]);
	var b = parseInt(tmp[1]);
	var c = parseInt(tmp[2]);
	console.log(Math.min(c, parseInt(b/a)));
}


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