
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 3 male students and 4 female students, calculate the total number of different arrangements under the following requirements:  
(1) Select 5 people and arrange them in a row;  
(2) Arrange them in two rows, with 3 in the front row and 4 in the back row;  
(3) Arrange all of them in a row, with a specific person not standing at the head or tail of the row;  
(4) Arrange all of them in a row, with all female students standing together;  
(5) Arrange all of them in a row, with male students not standing next to each other;  
(6) Arrange all of them in a row, with exactly 3 people between person A and person B.

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