
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
There are five people standing in a row. Calculate the number of different arrangements under the following conditions:
(1) Person A must be at the head of the line;
(2) Person A and Person B must stand adjacent to each other;
(3) Person A is not at the head, and Person B is not at the end;
(4) Among them, Person A and Person B are arranged from left to right, from taller to shorter, and they are not adjacent to each other.

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