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