'use strict'

function main(input) {
    input = input.split(' ').map(v => ~~v)
    
    const cnt = Math.floor(input[1] / input[0]) 

    console.log( Math.min(cnt, input[2]))
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))