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

main(require('fs').readFileSync('/dev/stdin', 'UTF-8'));
