# ABC120 A

def main():
    a, b, c = map(int, input().split())
    
    if a * c <= b:
        print(c)
    else:
        print(b//a)

if __name__ == '__main__'    :
    main() def main():
    a, b, c = map(int, input().split())
    
    if a * c <= b:
        print(c)
    else:
        print(b//a) main a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c if a * c <= b:
        print(c)
    else:
        print(b//a) a * c <= b a * c a c b print(c) print c print(b//a) print b//a b a if __name__ == '__main__'    :
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    a, b, c = map(int, input().split())
    
    if a * c <= b:
        print(c)
    else:
        print(b//a) def main():
    a, b, c = map(int, input().split())
    
    if a * c <= b:
        print(c)
    else:
        print(b//a) main
# ABC120 A

def main():
    a, b, c = map(int, input().split())
    
    if a * c <= b:
        print(c)
    else:
        print(b//a)

if __name__ == '__main__'    :
    main()