function main(input) {
  var inputList = input.split(" ");
  var charge = Number(inputList[0]);
  var have = Number(inputList[1]);
  var max = Number(inputList[2]);
  var listenMax = Math.floor(have / charge);

  const ans = max > listenMax ? listenMax : max;
  console.log(ans);
}


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