import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    A, B, C = map(int, readline().split())

    print(min(B // A, C))

    return


if __name__ == '__main__':
    main() import sys sys read = sys.stdin.read read sys.stdin.read sys.stdin sys stdin read readline = sys.stdin.readline readline sys.stdin.readline sys.stdin sys stdin readline readlines = sys.stdin.readlines readlines sys.stdin.readlines sys.stdin sys stdin readlines sys.setrecursionlimit(10 ** 9) sys.setrecursionlimit sys setrecursionlimit 10 ** 9 10 9 INF = 1 << 60 INF 1 << 60 1 60 MOD = 1000000007 MOD 1000000007 def main():
    A, B, C = map(int, readline().split())

    print(min(B // A, C))

    return main A, B, C = map(int, readline().split()) A map(int, readline().split()) map int readline().split() ().split () readline split B C print(min(B // A, C)) print min(B // A, C) min B // A B A C return if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main readlines = sys.stdin.readlines sys.stdin.readlines readlines INF = 1 << 60 1 << 60 INF readline = sys.stdin.readline sys.stdin.readline readline def main():
    A, B, C = map(int, readline().split())

    print(min(B // A, C))

    return def main():
    A, B, C = map(int, readline().split())

    print(min(B // A, C))

    return main read = sys.stdin.read sys.stdin.read read MOD = 1000000007 1000000007 MOD
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    A, B, C = map(int, readline().split())

    print(min(B // A, C))

    return


if __name__ == '__main__':
    main()
