def main():
    cost, budget, maxCount = map(int, input().split())
    ct = budget // cost
    print(min(maxCount, ct))
    

main() def main():
    cost, budget, maxCount = map(int, input().split())
    ct = budget // cost
    print(min(maxCount, ct))
     main cost, budget, maxCount = map(int, input().split()) cost map(int, input().split()) map int input().split() ().split () input split budget maxCount ct = budget // cost ct budget // cost budget cost print(min(maxCount, ct)) print min(maxCount, ct) min maxCount ct main() main def main():
    cost, budget, maxCount = map(int, input().split())
    ct = budget // cost
    print(min(maxCount, ct))
     def main():
    cost, budget, maxCount = map(int, input().split())
    ct = budget // cost
    print(min(maxCount, ct))
     main
def main():
    cost, budget, maxCount = map(int, input().split())
    ct = budget // cost
    print(min(maxCount, ct))
    

main()