
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
A class is organizing an arts evening, and they plan to select 4 programs from 8 options (A, B, etc.) to perform. The requirements are:
1. At least one of the programs A or B must be selected.
2. If both A and B are selected, they cannot be adjacent in the performance order.

What is the number of different performance orders?

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