function Main(input) {
  input = input.split(" ");
  var c = input[2];
  var quot = Math.floor(input[1] / input[0]);
  if(quot > c) {
    console.log(c);
  } else {
    console.log(quot);
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));