
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
Two teachers are taking a photo with 3 male students and 3 female students lined up in a row. The teachers can only stand at the ends, and the male students cannot be adjacent. How many different ways are there to arrange the photo?

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