
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
Arrange 3 male students and 4 female students in a row. Under the following different requirements, calculate the number of different arrangement methods:  
(1) Person A and Person B must stand at the two ends;  
(2) All male students must be grouped together;  
(3) Male students must not stand next to each other;  
(4) Exactly one person stands between Person A and Person B.

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