import sys
def input(): return sys.stdin.readline().strip()

def resolve():
    a,b,c=map(int, input().split())

    print(min(b//a,c))
resolve() import sys sys def input(): return sys.stdin.readline().strip() input def resolve():
    a,b,c=map(int, input().split())

    print(min(b//a,c)) resolve a,b,c=map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c print(min(b//a,c)) print min(b//a,c) min b//a b a c resolve() resolve def input(): return sys.stdin.readline().strip() def input(): return sys.stdin.readline().strip() input def resolve():
    a,b,c=map(int, input().split())

    print(min(b//a,c)) def resolve():
    a,b,c=map(int, input().split())

    print(min(b//a,c)) resolve
import sys
def input(): return sys.stdin.readline().strip()

def resolve():
    a,b,c=map(int, input().split())

    print(min(b//a,c))
resolve()