def main():
    A, B, C = map(int, input().split())
    x, y = divmod(B, A)
    if x < C:
        print(x)
    else:
        print(C)
if __name__ == "__main__":
    main() def main():
    A, B, C = map(int, input().split())
    x, y = divmod(B, A)
    if x < C:
        print(x)
    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 x, y = divmod(B, A) x divmod(B, A) divmod B A y if x < C:
        print(x)
    else:
        print(C) x < C x C print(x) print x print(C) print C if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    A, B, C = map(int, input().split())
    x, y = divmod(B, A)
    if x < C:
        print(x)
    else:
        print(C) def main():
    A, B, C = map(int, input().split())
    x, y = divmod(B, A)
    if x < C:
        print(x)
    else:
        print(C) main
def main():
    A, B, C = map(int, input().split())
    x, y = divmod(B, A)
    if x < C:
        print(x)
    else:
        print(C)
if __name__ == "__main__":
    main()