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

manzoku = c
saitei = b//a

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

manzoku = c
saitei = b//a

print(min(manzoku, saitei))