def resolve():
    inp = input()
    li = list(map(lambda x: int(x), inp.split(" ")))
    num = li[1]//li[0]
    print(min(num, li[2]))
    
resolve() def resolve():
    inp = input()
    li = list(map(lambda x: int(x), inp.split(" ")))
    num = li[1]//li[0]
    print(min(num, li[2]))
     resolve inp = input() inp input() input li = list(map(lambda x: int(x), inp.split(" "))) li list(map(lambda x: int(x), inp.split(" "))) list map(lambda x: int(x), inp.split(" ")) map lambda x: int(x) int(x) int x x inp.split(" ") inp.split inp split " " num = li[1]//li[0] num li[1]//li[0] li[1] li 1 li[0] li 0 print(min(num, li[2])) print min(num, li[2]) min num li[2] li 2 resolve() resolve def resolve():
    inp = input()
    li = list(map(lambda x: int(x), inp.split(" ")))
    num = li[1]//li[0]
    print(min(num, li[2]))
     def resolve():
    inp = input()
    li = list(map(lambda x: int(x), inp.split(" ")))
    num = li[1]//li[0]
    print(min(num, li[2]))
     resolve
def resolve():
    inp = input()
    li = list(map(lambda x: int(x), inp.split(" ")))
    num = li[1]//li[0]
    print(min(num, li[2]))
    
resolve()