function main(input) {
  const args = input.split(' ');
  const A = args[0];
  const B = args[1];
  const C = args[2];
  const culc = Math.floor(B / A);
  console.log(Number(C) < culc ? C : culc);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
