process.stdin.resume();
process.stdin.setEncoding('utf8');

let lines = [];

let reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});

reader.on('close', () => {
  let soundPrice,havingMoney,wontHear;

  [soundPrice,havingMoney,wontHear]=lines[0].split(' ').map((x)=>x-[])

  canMaxHear = Math.floor(havingMoney/soundPrice)

  if(canMaxHear > wontHear){
    console.log(wontHear)
  }else {
    console.log(canMaxHear)
}

});
