a,b,c = map(int,input().split())
count = int(b / a)

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

if count >= c:
  print(c)
else:
  print(count)