
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
The Happy Valley Zoo has 5 parrots, 3 dogs, and 4 cats. In how many ways can the 12 animals be placed in a row of 12 cages, such that all of the animals of each type are in adjacent cages, and the cats must be placed somewhere between the parrots and dogs?

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