1. Given $p$ is a prime number greater than 5, and $m$ is the smallest non-negative remainder when $\left(p^{2}+5 p+5\right)^{2}$ is divided by 120. Then the units digit of $2009^{m}$ is $\qquad$
Notice that
$$
\begin{array}{l}
\left(p^{2}+5 p+5\right)^{2}=\left[\left(p^{2}+5 p+5\right)^{2}-1\right]+1 \\
=\left(p^{2}+5 p+6\right)\left(p^{2}+5 p+4\right)+1 \\
=(p+1)(p+2)(p+3)(p+4)+1 .
\end{array}
$$

Let $M=(p+1)(p+2)(p+3)(p+4)$.
Clearly, $5! \mid p M$.
Since $p$ is a prime number greater than 5, 120 divides $M$.
Therefore, $\left(p^{2}+5 p+5\right)^{2}$ always has a remainder of 1 when divided by 120, i.e., $m=1$.
Thus, $2009^{m}=2009$.