4. Given that $x_{1}, x_{2}, \cdots, x_{n}$ where $x_{i}(i=1,2, \cdots, n)$ can only take one of the values $-2, 0, 1$, and satisfy
$$
\begin{array}{l}
x_{1}+x_{2}+\cdots+x_{n}=-17, \\
x_{1}^{2}+x_{2}^{2}+\cdots+x_{n}^{2}=37 .
\end{array}
$$

Then $\left(x_{1}^{3}+x_{2}^{3}+\cdots+x_{n}^{3}\right)^{2}$ is $\qquad$