function main(arg) {
	arg = arg.split("\n")[0].split(" ").map(Number)
	var a = arg[0]
	var b = arg[1]
	var c = arg[2]

	var t = Math.floor(b / a)

	if (t < c) {
		console.log(t)
	} else {
		console.log(c)
	}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));