a,b,c=map(int,input().split())
times = int(b/a)
if times > c:
  print(c)
else:
  print(times) a,b,c=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c times = int(b/a) times int(b/a) int b/a b a if times > c:
  print(c)
else:
  print(times) times > c times c print(c) print c print(times) print times b,c=map(int,input().split()) map(int,input().split()) b times = int(b/a) int(b/a) times 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())
times = int(b/a)
if times > c:
  print(c)
else:
  print(times)