
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
Denis kept chameleons that can change color only to red and brown. At first, the number of red chameleons was five times greater than the number of brown chameleons. After two brown chameleons turned red, the number of red chameleons became eight times greater than the number of brown chameleons. Find out how many chameleons Denis has.

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