import math
def main(a,b,c):
    temp = math.floor(b/a)
    return temp if temp <= c else c

a,b,c = map(int, input().split())
print(main(a,b,c)) import math math def main(a,b,c):
    temp = math.floor(b/a)
    return temp if temp <= c else c main temp = math.floor(b/a) temp math.floor(b/a) math.floor math floor b/a b a return temp if temp <= c else c temp if temp <= c else c temp <= c temp c temp c a a b b c c a,b,c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c print(main(a,b,c)) print main(a,b,c) main a b c a,b,c = map(int, input().split()) map(int, input().split()) a b,c = map(int, input().split()) map(int, input().split()) b c = map(int, input().split()) map(int, input().split()) c def main(a,b,c):
    temp = math.floor(b/a)
    return temp if temp <= c else c def main(a,b,c):
    temp = math.floor(b/a)
    return temp if temp <= c else c main
import math
def main(a,b,c):
    temp = math.floor(b/a)
    return temp if temp <= c else c

a,b,c = map(int, input().split())
print(main(a,b,c))