Let f(x)=x^2+4 x+2. Let r be the difference between the largest and smallest real solutions of the equation f(f(f(f(x))))=0. Then r=a^{\frac{p}{9}} for some positive integers a, p, q so a is square-free and p, q are relatively prime positive integers. Compute a+p+q.