How many six-letter words formed from the letters of "AMC" do not contain the substring "AMC"? For example, "AMAMMC" has this property, but "AAMCCC" does not.

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