def main():
    A, B, C = map(int, input().split())
    print(min(B // A, C))


if __name__ == '__main__':
    main() def main():
    A, B, C = map(int, input().split())
    print(min(B // A, C)) main A, B, C = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B C print(min(B // A, C)) print min(B // A, C) min B // A B A C if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    A, B, C = map(int, input().split())
    print(min(B // A, C)) def main():
    A, B, C = map(int, input().split())
    print(min(B // A, C)) main
def main():
    A, B, C = map(int, input().split())
    print(min(B // A, C))


if __name__ == '__main__':
    main()
