def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))

a,b,c = iim()
print(min(b//a,c)) def ii():return int(input()) ii def iim():return map(int,input().split()) iim def iil():return list(map(int,input().split())) iil a,b,c = iim() a iim() iim b c print(min(b//a,c)) print min(b//a,c) min b//a b a c def iim():return map(int,input().split()) def iim():return map(int,input().split()) iim def iil():return list(map(int,input().split())) def iil():return list(map(int,input().split())) iil c = iim() iim() c a,b,c = iim() iim() a def ii():return int(input()) def ii():return int(input()) ii b,c = iim() iim() b
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))

a,b,c = iim()
print(min(b//a,c))