
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

On a certain day, there were some nuts in a bag. On the next day, the same number of nuts was added to the bag, but eight nuts were taken out. On the third day, the same thing happened: the same number of nuts as were already in the bag was added, but eight were taken out. The same process occurred on the fourth day, and after this, there were no nuts left in the bag. How many nuts were in the bag at the very beginning?

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