import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


def main():
    a, b, c = nm()
    print(min(c, b // a))


if __name__ == '__main__':
    main() import sys sys stdin = sys.stdin stdin sys.stdin sys stdin def ns(): return stdin.readline().rstrip() ns def ni(): return int(stdin.readline().rstrip()) ni def nm(): return map(int, stdin.readline().split()) nm def nl(): return list(map(int, stdin.readline().split())) nl def main():
    a, b, c = nm()
    print(min(c, b // a)) main a, b, c = nm() a nm() nm b c print(min(c, b // a)) print min(c, b // a) min c b // a b a if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def ni(): return int(stdin.readline().rstrip()) def ni(): return int(stdin.readline().rstrip()) ni def nl(): return list(map(int, stdin.readline().split())) def nl(): return list(map(int, stdin.readline().split())) nl def ns(): return stdin.readline().rstrip() def ns(): return stdin.readline().rstrip() ns def nm(): return map(int, stdin.readline().split()) def nm(): return map(int, stdin.readline().split()) nm def main():
    a, b, c = nm()
    print(min(c, b // a)) def main():
    a, b, c = nm()
    print(min(c, b // a)) main stdin = sys.stdin sys.stdin stdin
import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


def main():
    a, b, c = nm()
    print(min(c, b // a))


if __name__ == '__main__':
    main()
