
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
Ali Baba and the thief are dividing a hoard consisting of 100 gold coins, distributed in 10 piles of 10 coins each. Ali Baba chooses 4 piles, places a cup near each of them, and puts a certain number of coins (at least one, but not the entire pile) into each cup. The thief must then rearrange the cups, changing their initial positions, after which the coins are poured from the cups back into the piles they are now next to. Ali Baba then chooses 4 piles from the 10 again, places cups near them, and so on. At any moment, Ali Baba can leave, taking with him any three piles of his choice. The remaining coins go to the thief. What is the maximum number of coins Ali Baba can take with him if the thief also tries to get as many coins as possible?

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