function Main(input){
	inputs = input.split(' ');
    x = Math.floor(inputs[1] / inputs[0]);
    if(x >= inputs[2]){
    console.log(inputs[2]);
    }else if(x <= inputs[2]){
    console.log(x);
    }
}
Main(require("fs").readFileSync("/dev/stdin","utf8"));