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 i = 1;
  
  while( (B - (A*(i)) >= 0) && ((i) <= C) ){
    i += 1;
  }
  console.log(i-1);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
