//a
const solve = (inputs) => {
  const input = inputs.split("\n");
  const nums = input[0].split(' ').map((e)=>parseInt(e));
  console.log('%d', Math.min(nums[2],Math.floor(nums[1]/nums[0])));
}

solve(require("fs").readFileSync("/dev/stdin", "utf8"));
