
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.

1. In how many different ways can they line up in a row such that A and B must be adjacent, and C and D cannot be adjacent?
2. In how many different ways can these five students be distributed into three classes, with each class having at least one student?

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