Solution (source code)

= Solution

Quantum consistency requires cancellation of the $SU(N)^3$ <gauge anomaly>. The two-index <symmetric square> has <cubic anomaly coefficient> $A(S)=N+4$, whereas each antifundamental has coefficient $-1$. Therefore
$$
\boxed{p=N+4}.
$$