a,b,c=map(int,input().split())
d=b//a
if (d+1)*a<=b:
  d+=1
print(min(d,c)) a,b,c=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c d=b//a d b//a b a if (d+1)*a<=b:
  d+=1 (d+1)*a<=b (d+1)*a d+1 d 1 a b d+=1 d 1 print(min(d,c)) print min(d,c) min d c d=b//a b//a d b,c=map(int,input().split()) map(int,input().split()) b d+=1 1 d a,b,c=map(int,input().split()) map(int,input().split()) a c=map(int,input().split()) map(int,input().split()) c
a,b,c=map(int,input().split())
d=b//a
if (d+1)*a<=b:
  d+=1
print(min(d,c))