
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
Given that there are 3 male students, 2 female students, and 1 teacher to be arranged in a row, and the requirement that all male students are not adjacent to each other and female students are also not adjacent, calculate the total number of possible arrangements.

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