function Main(input){ 
  var inputs = input.split(" ");
  var A = parseInt(inputs[0],10);
  var B = parseInt(inputs[1],10);
  var C = parseInt(inputs[2],10);
  var count = 0;
  for(i=0;B>=0;i++){
    B -= A;
    count += 1;   
  }
  count -= 1;
  if(C<=count){
    console.log(C);
  }else{
    console.log(count);
  }

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