
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
Masha braided her dolls' hair: half of the dolls got one braid each, a quarter of the dolls got two braids each, and the remaining quarter of the dolls got four braids each. She used one ribbon for each braid. How many dolls does Masha have if she needed 24 ribbons in total?

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