#!/usr/bin/env python3
a, b, c = map(int, open(0).read().split())
if b//a >= c:
    print(c)
else:
    print(b//a) a, b, c = map(int, open(0).read().split()) a map(int, open(0).read().split()) map int open(0).read().split() (0).read().split (0).read() (0).read (0) open 0 read split b c if b//a >= c:
    print(c)
else:
    print(b//a) b//a >= c b//a b a c print(c) print c print(b//a) print b//a b a c = map(int, open(0).read().split()) map(int, open(0).read().split()) c b, c = map(int, open(0).read().split()) map(int, open(0).read().split()) b a, b, c = map(int, open(0).read().split()) map(int, open(0).read().split()) a
#!/usr/bin/env python3
a, b, c = map(int, open(0).read().split())
if b//a >= c:
    print(c)
else:
    print(b//a)
