"use strict"
function Main(input){
 input=input.trim();
 input=input.split(/\s+/);
 for(let i=0;i<input.length;i++)
   input[i]=input[i]-0;
  var A=input[0];
  var B=input[1];
  var C=input[2];
  var M=Math.floor(B/A);
  var result=Math.min(M,C);
  console.log(result);
}

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