Given any positive integer $n,$ let $\phi(n)$ be the number of positive integers less than or equal to $n$ that are relatively prime to $n.$ Find the last three digits of $\large\phi({3}^{2})^{\phi({4}^{2}){}^{\phi({5}^{2})^{.^{.^{.\phi(2019{}^{2})}}}}{}^{}}$
My attempts: I calculated Euler's totient functions separately by the formula $\phi(n)=n\big(1-\frac{1}{p_1}\big)\big(1-\frac{1}{p_2}\big)\cdots\big(1-\frac{1}{p_k}\big),$ and then I worked them with $\pmod{1000}.$ But it looks very tedious!
May be there some smart way to tackle this problem.
Any guidance would be highly appreciated.Thank you!