
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
Determine the number of different ways to assign five students—A, B, C, D, and E—to be the class representatives for the subjects Chinese, Mathematics, English, Physics, and Chemistry, with the following constraints: 
A cannot be the representative for Chinese, B cannot be the representative for Mathematics, and if C is the representative for Physics, then D must be the representative for Chemistry.

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