8. Six boys and a girls stand in a row at random, with each boy being adjacent to at least one other boy, and the probability that at least four boys stand together is p. If p⩽1001, then the minimum value of a is .
A number or a short expression. Spacing and $ signs are ignored.