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

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