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