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


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