
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
There is a pile of chestnuts on the beach, shared among four monkeys, which they want to distribute equally. The first monkey arrives and, seeing no other monkeys coming, divides the chestnuts into four equal piles with one remaining, which it throws into the sea. It then takes one of the four piles. The second monkey arrives and, without waiting for the others, equally divides the remaining chestnuts into four piles, again with one left over, which it throws away, and then takes one pile. The third monkey does the same: divides the chestnuts, throws away the remaining one, and takes one pile. Finally, the last monkey arrives, divides the chestnuts into four equal piles, throws away the extra one, and takes one pile. What was the minimum number of chestnuts in the original pile?

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