"use strict";
const main = input => {
    const a = Number(input[0].split(' ')[0]);
    const b = Number(input[0].split(' ')[1]);
    const c = Number(input[0].split(' ')[2]);
    console.log(Math.floor(b/a)>c?c:Math.floor(b/a));
    
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));