import Foundation

extension String {
    func split(separator: String) -> [Int] {
        return self.componentsSeparatedByString(separator).map { Int($0)! }
    }
}

let input = readLine()!.split(" ")
let A = input[0]
let B = input[1]
let C = input[2]

var ans: Int!
ans = B / A
if ans > C {
    ans = C
}

print(ans)