A,B,C = map(int, input().split(" "))
c = B//A
if c>=C:
	print(C)
else:
  print(c) A,B,C = map(int, input().split(" ")) A map(int, input().split(" ")) map int input().split(" ") ().split () input split " " B C c = B//A c B//A B A if c>=C:
	print(C)
else:
  print(c) c>=C c C print(C) print C print(c) print c A,B,C = map(int, input().split(" ")) map(int, input().split(" ")) A C = map(int, input().split(" ")) map(int, input().split(" ")) C B,C = map(int, input().split(" ")) map(int, input().split(" ")) B c = B//A B//A c
A,B,C = map(int, input().split(" "))
c = B//A
if c>=C:
	print(C)
else:
  print(c)