$P(x)$ is a polynomial in $x$ with non-negative integer coefficients. If $P(1) = 5$ and $P(P(1)) = 177$, what is the sum of all possible values of $P(10)$?

Let's think step by step and output the final answer within \boxed{}.
user