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. Fractions can be typed as 3/2, and spacing doesn't matter.