a,b,c=map(int,input().split())
m=b//a
print(min(m,c)) a,b,c=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c m=b//a m b//a b a print(min(m,c)) print min(m,c) min m c m=b//a b//a m 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
a,b,c=map(int,input().split())
m=b//a
print(min(m,c))