import sys

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    a, b, c = map(int, input().split())
    if c * a <= b:
        print(c)
    else:
        print(b // a)



if __name__ == '__main__':
    resolve() import sys sys sys.setrecursionlimit(10 ** 7) sys.setrecursionlimit sys setrecursionlimit 10 ** 7 10 7 f_inf = float('inf') f_inf float('inf') float 'inf' mod = 10 ** 9 + 7 mod 10 ** 9 + 7 10 ** 9 10 9 7 def resolve():
    a, b, c = map(int, input().split())
    if c * a <= b:
        print(c)
    else:
        print(b // a) resolve a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c if c * a <= b:
        print(c)
    else:
        print(b // a) c * a <= b c * a c a b print(c) print c print(b // a) print b // a b a if __name__ == '__main__':
    resolve() __name__ == '__main__' __name__ '__main__' resolve() resolve f_inf = float('inf') float('inf') f_inf mod = 10 ** 9 + 7 10 ** 9 + 7 mod def resolve():
    a, b, c = map(int, input().split())
    if c * a <= b:
        print(c)
    else:
        print(b // a) def resolve():
    a, b, c = map(int, input().split())
    if c * a <= b:
        print(c)
    else:
        print(b // a) resolve
import sys

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    a, b, c = map(int, input().split())
    if c * a <= b:
        print(c)
    else:
        print(b // a)



if __name__ == '__main__':
    resolve()
