function Main(input){
  input = input.split("\n");
  inputStr = input[0].split(" ");
  var A = Number.parseInt(inputStr[0]);
  var B = Number.parseInt(inputStr[1]);
  var C = Number.parseInt(inputStr[2]);
  var ANS = 0;
  
  if (A > B) { 
	ANS = 0;
  } else if ( A*C <= B) {
    ANS = C;
  } else {
    ANS = Math.floor(B/A);
  }
  console.log(ANS);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));