
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
Three friends had a monkey. They bought some quantity of fruits from a mango tree and hid them. At night, one of the friends wanted to indulge himself, went to the pantry, and tried to take a third part for himself, but it turned out that there was one extra fruit, which he gave to the monkey, and ate his part. After some time, the second friend came and, not knowing that the first one had already taken his part, divided the remaining fruits into three equal parts, again finding one extra fruit, which he gave to the monkey and ate his part. Finally, the third friend came and also divided the remaining fruits into three equal parts, finding one extra fruit, which he gave to the monkey and ate his part.

The next morning, all three went to the pantry and divided the remaining fruits equally among themselves, again finding one extra fruit, which they gave to the monkey.

Determine the smallest number of fruits that satisfies the above conditions of distribution.

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