
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
Two people, A and B, take turns to draw candies from a bag. A starts by taking 1 candy, then B takes 2 candies, A takes 4 candies next, then B takes 8 candies, and so on. This continues. When the number of candies remaining in the bag is less than the number they are supposed to take, they take all the remaining candies. If A has taken a total of 90 candies, how many candies were there initially in the bag?

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