def favorite_sound(a, b, c):

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

if __name__ == '__main__':
    main() def favorite_sound(a, b, c):

    return c if b//a > c else b//a favorite_sound return c if b//a > c else b//a c if b//a > c else b//a b//a > c b//a b a c c b//a b a a a b b c c def main():
    a, b, c = map(int, input().split())
    print(favorite_sound(a, b, c)) main a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c print(favorite_sound(a, b, c)) print favorite_sound(a, b, c) favorite_sound a b c if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def favorite_sound(a, b, c):

    return c if b//a > c else b//a def favorite_sound(a, b, c):

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

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

if __name__ == '__main__':
    main()