
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
A $8 \times 8 \times 8$ cube has three of its faces painted red and the other three faces painted blue (ensuring that any three faces sharing a common vertex are not painted the same color), and then it is cut into 512 $1 \times 1 \times 1$ smaller cubes. Among these 512 smaller cubes, how many have both a red face and a blue face?

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