
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 5 graduates standing in a row for a photo. If there are at most 2 people between Person A and Person B, and they are not adjacent to each other, how many different standing arrangements are there?

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