#-*-coding:utf-8-*-

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

if __name__=="__main__":
    main() def main():
    a,b,c = map(int,input().split())
    ans=b//a
    if c > ans:
        print(ans)
    else:
        print(c) main a,b,c = map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c ans=b//a ans b//a b a if c > ans:
        print(ans)
    else:
        print(c) c > ans c ans print(ans) print ans print(c) print c if __name__=="__main__":
    main() __name__=="__main__" __name__ "__main__" main() main def main():
    a,b,c = map(int,input().split())
    ans=b//a
    if c > ans:
        print(ans)
    else:
        print(c) def main():
    a,b,c = map(int,input().split())
    ans=b//a
    if c > ans:
        print(ans)
    else:
        print(c) main
#-*-coding:utf-8-*-

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

if __name__=="__main__":
    main()