function main(input){
  const A=input.split(' ')[0];
  const B=input.split(' ')[1];
  const C=input.split(' ')[2];
  if(B>=A*C){
    console.log(C);
  }else{
    console.log(Math.floor(B/A));
  }

}

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