12. Wu Yu wrote four letters and four envelopes, and he needs to put each letter into the corresponding envelope, with only one letter in each envelope. The number of ways all four letters can be placed incorrectly is $\qquad$ kinds.
$9$