
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 flag consists of three horizontal stripes, each potentially colored red, white, blue, green, or yellow. No two adjacent stripes should share the same color, and no color should appear more than once on the flag. How many distinct flags can be designed under these conditions?

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