a, b, c = map(int, input().split())
x = b//a
print(min(x, c)) a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c x = b//a x b//a b a print(min(x, c)) print min(x, c) min x c a, b, c = map(int, input().split()) map(int, input().split()) a x = b//a b//a x c = map(int, input().split()) map(int, input().split()) c b, c = map(int, input().split()) map(int, input().split()) b
a, b, c = map(int, input().split())
x = b//a
print(min(x, c))
