
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
You have $7$ red shirts, $7$ green shirts, $9$ pairs of pants (4 blue and 5 black), $10$ green hats, and $10$ red hats, all of which are distinct. How many outfits can you make consisting of one shirt, one pair of pants, and one hat, under the condition that the shirt and hat must not be the same color, and the pants must be blue if the shirt is red?

Present the answer in LaTex format: \boxed{Your answer}
user