#!/usr/bin/env python3

a, b, c = list(map(int, input().split()))

ans = (b//a)

print(min(ans, c)) a, b, c = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b c ans = (b//a) ans b//a b a print(min(ans, c)) print min(ans, c) min ans c a, b, c = list(map(int, input().split())) list(map(int, input().split())) a b, c = list(map(int, input().split())) list(map(int, input().split())) b c = list(map(int, input().split())) list(map(int, input().split())) c ans = (b//a) b//a ans
#!/usr/bin/env python3

a, b, c = list(map(int, input().split()))

ans = (b//a)

print(min(ans, c))
