12. Let the set $M=\{1,2, \cdots, 10\}$,
$$
\begin{aligned}
A= & \{(x, y, z) \mid x, y, z \in M, \text { and } \\
& \left.9 \mid\left(x^{3}+y^{3}+z^{3}\right)\right\} .
\end{aligned}
$$

Then the number of elements in set $A$ is $\qquad$ .