i = list(map(int, input().split()))
A = i[0]
B = i[1]
C = i[2]
D = B // A

if D <= C:
  print(D)
else:
  print(C)
   i = list(map(int, input().split())) i list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split A = i[0] A i[0] i 0 B = i[1] B i[1] i 1 C = i[2] C i[2] i 2 D = B // A D B // A B A if D <= C:
  print(D)
else:
  print(C)
   D <= C D C print(D) print D print(C) print C C = i[2] i[2] C D = B // A B // A D A = i[0] i[0] A B = i[1] i[1] B i = list(map(int, input().split())) list(map(int, input().split())) i
i = list(map(int, input().split()))
A = i[0]
B = i[1]
C = i[2]
D = B // A

if D <= C:
  print(D)
else:
  print(C)
  
