4. Wu Yu wrote three letters and three envelopes, and he needs to put each letter into the corresponding envelope, with only one letter per envelope. The number of all possible scenarios where at least one of the three letters is placed incorrectly is $\qquad$ kinds.