
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 bought three pies of each of two kinds: with apples and with cherries. While carrying them home, they got mixed up. Masha has a machine at home into which she can put several pies, and if there are pies of different kinds among them, a green light will turn on. How can she divide all the pies into two groups of the same kind in four uses of the machine?

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