
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
Zhenya has 8 bananas and 10 mangoes in a black box, and 12 mangoes in a white box. In one action, Zhenya can take a fruit from any box without looking and either eat it or transfer it to the other box. Zhenya wants the boxes to contain the same types of fruits. What is the minimum number of actions Zhenya needs to guarantee this? The boxes are closed, and identifying fruits by touch is not possible.

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