a,b,c=map(int,input().split())
if a*c <= b:
  print(c)
elif a*c >= b:
  print(b//a)
else:
  print(0) a,b,c=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c if a*c <= b:
  print(c)
elif a*c >= b:
  print(b//a)
else:
  print(0) a*c <= b a*c a c b print(c) print c elif a*c >= b:
  print(b//a) a*c >= b a*c a c b print(b//a) print b//a b a print(0) print 0 c=map(int,input().split()) map(int,input().split()) c a,b,c=map(int,input().split()) map(int,input().split()) a b,c=map(int,input().split()) map(int,input().split()) b
a,b,c=map(int,input().split())
if a*c <= b:
  print(c)
elif a*c >= b:
  print(b//a)
else:
  print(0)