n = list(map(int, input().split()))
def ans(a, b, c):
    if a > b:
        return 0
    else:
        if int(b/a) < c:
            return int(b/a)
        else:
            return c
print(ans(n[0], n[1], n[2])) n = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split def ans(a, b, c):
    if a > b:
        return 0
    else:
        if int(b/a) < c:
            return int(b/a)
        else:
            return c ans if a > b:
        return 0
    else:
        if int(b/a) < c:
            return int(b/a)
        else:
            return c a > b a b return 0 0 if int(b/a) < c:
            return int(b/a)
        else:
            return c int(b/a) < c int(b/a) int b/a b a c return int(b/a) int(b/a) int b/a b a return c c a a b b c c print(ans(n[0], n[1], n[2])) print ans(n[0], n[1], n[2]) ans n[0] n 0 n[1] n 1 n[2] n 2 n = list(map(int, input().split())) list(map(int, input().split())) n def ans(a, b, c):
    if a > b:
        return 0
    else:
        if int(b/a) < c:
            return int(b/a)
        else:
            return c def ans(a, b, c):
    if a > b:
        return 0
    else:
        if int(b/a) < c:
            return int(b/a)
        else:
            return c ans
n = list(map(int, input().split()))
def ans(a, b, c):
    if a > b:
        return 0
    else:
        if int(b/a) < c:
            return int(b/a)
        else:
            return c
print(ans(n[0], n[1], n[2]))