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

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