
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
In how many different ways can four students stand in a straight line if two of the students refuse to stand next to each other and one of the other students insists on standing at either the first or last position in the line?

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