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

d=b//a

if d>c:
    print(c)
else:
    print(d) 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 if d>c:
    print(c)
else:
    print(d) d>c d c print(c) print c print(d) print d 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 d=b//a b//a d

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

d=b//a

if d>c:
    print(c)
else:
    print(d)