a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
if b/a>=c:
  print(c)
else:
  print(int(b/a)) a,b,c=input().split() a input().split() ().split () input split b c a=int(a) a int(a) int a b=int(b) b int(b) int b c=int(c) c int(c) int c if b/a>=c:
  print(c)
else:
  print(int(b/a)) b/a>=c b/a b a c print(c) print c print(int(b/a)) print int(b/a) int b/a b a c=input().split() input().split() c a,b,c=input().split() input().split() a b,c=input().split() input().split() b c=int(c) int(c) c b=int(b) int(b) b a=int(a) int(a) a
a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
if b/a>=c:
  print(c)
else:
  print(int(b/a))