function main(arg) {
    
    a = arg.split(" ");
    
    C = Math.floor(a[1] / a[0]);
    
    if(C <= a[2]){console.log(C);}
    else{console.log(a[2]);}
    
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));