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