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

s=b/a
s=int(s)
if(s>=c):
    print(c)

else:
    print(s)

    
    

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

else:
    print(s)

    
    

     s>=c s c print(c) print c print(s) print s a,b,c=map(int,input().split()) map(int,input().split()) a c=map(int,input().split()) map(int,input().split()) c b,c=map(int,input().split()) map(int,input().split()) b s=b/a b/a s s=int(s) int(s) s
a,b,c=map(int,input().split())

s=b/a
s=int(s)
if(s>=c):
    print(c)

else:
    print(s)

    
    

    
