
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 students: A, B, C, D, and E. Please solve the following questions:
(1) In how many different ways can the five students stand in a row?
(2) In how many different ways can the five students stand in a row if A and B must stand next to each other, and C and D must not stand next to each other?
(3) How many different ways can the five students be divided into three classes, with each class having at least one student?

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