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

d=b//a

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

d=b//a

print(min(d,c))