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

result = b // a
if result > c:
    result = c

print(result) a,b,c = map(int,(input().split())) a map(int,(input().split())) map int input().split() ().split () input split b c result = b // a result b // a b a if result > c:
    result = c result > c result c result = c result c print(result) print result result = b // a b // a result b,c = map(int,(input().split())) map(int,(input().split())) b c = map(int,(input().split())) map(int,(input().split())) c a,b,c = map(int,(input().split())) map(int,(input().split())) a result = c c result
a,b,c = map(int,(input().split()))

result = b // a
if result > c:
    result = c

print(result)