a,b,c = map(int, raw_input().split(' '))
print min(c, b/a) a,b,c = map(int, raw_input().split(' ')) a map(int, raw_input().split(' ')) map int raw_input().split(' ') ().split () raw_input split ' ' b c print min(c, b/a) min c b/a b a b,c = map(int, raw_input().split(' ')) map(int, raw_input().split(' ')) b a,b,c = map(int, raw_input().split(' ')) map(int, raw_input().split(' ')) a c = map(int, raw_input().split(' ')) map(int, raw_input().split(' ')) c
a,b,c = map(int, raw_input().split(' '))
print min(c, b/a)