S_list = list(map(int,input().split()))
a,b,c = S_list
bell = int(b/a)
if bell >= c:
    result = c
else:
    result = bell
print(result) S_list = list(map(int,input().split())) S_list list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split a,b,c = S_list a S_list b c bell = int(b/a) bell int(b/a) int b/a b a if bell >= c:
    result = c
else:
    result = bell bell >= c bell c result = c result c result = bell result bell print(result) print result result = c c result b,c = S_list S_list b c = S_list S_list c bell = int(b/a) int(b/a) bell S_list = list(map(int,input().split())) list(map(int,input().split())) S_list result = bell bell result a,b,c = S_list S_list a
S_list = list(map(int,input().split()))
a,b,c = S_list
bell = int(b/a)
if bell >= c:
    result = c
else:
    result = bell
print(result)