a,b,c=map(int,input().split())
x=b//a
if x>=c:
    print(c)
else:
    print(x) a,b,c=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c x=b//a x b//a b a if x>=c:
    print(c)
else:
    print(x) x>=c x c print(c) print c print(x) print x x=b//a b//a x c=map(int,input().split()) map(int,input().split()) c a,b,c=map(int,input().split()) map(int,input().split()) a b,c=map(int,input().split()) map(int,input().split()) b
a,b,c=map(int,input().split())
x=b//a
if x>=c:
    print(c)
else:
    print(x)
