function main(input) {
  var a = input.split(" ")[0]-0, b = input.split(" ")[1]-0, c = input.split(" ")[2]-0;
  console.log(Math.min(~~(b/a), c));
}

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