function Main(input){
	var temp = input.split(" ");
	var A = parseInt(temp[0]);
	var B = parseInt(temp[1]);
	var C = parseInt(temp[2]);

	var count = Math.floor(B/A);
	if(count > C) count = C;
	console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));