def main():
    a, b, c = [int(x) for x in input().split()]
    times = b // a
    if times < c:
        print(times)
    else:
        print(c)
main() def main():
    a, b, c = [int(x) for x in input().split()]
    times = b // a
    if times < c:
        print(times)
    else:
        print(c) main int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a, b, c = [int(x) for x in input().split()] a [int(x) for x in input().split()] b c times = b // a times b // a b a if times < c:
        print(times)
    else:
        print(c) times < c times c print(times) print times print(c) print c main() main def main():
    a, b, c = [int(x) for x in input().split()]
    times = b // a
    if times < c:
        print(times)
    else:
        print(c) def main():
    a, b, c = [int(x) for x in input().split()]
    times = b // a
    if times < c:
        print(times)
    else:
        print(c) main
def main():
    a, b, c = [int(x) for x in input().split()]
    times = b // a
    if times < c:
        print(times)
    else:
        print(c)
main()
