
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 a class organizing a cultural evening, they plan to select 4 programs from 8 programs, with the requirement that at least one of the programs A or B must be selected, and when both A and B are selected, their performance order cannot be adjacent. Express the number of different performance orders as a value.

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