
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
Casper started with a certain number of candies. On the first day, he ate $\frac{1}{2}$ of his candies and gave $3$ candies to his brother. On the second day, he ate another $\frac{1}{2}$ of his remaining candies and then gave $5$ candies to his sister. On the third day, he again ate half of the candies left and gave $2$ candies to a friend. On the fourth day, Casper ate the last $10$ candies. Determine the initial number of candies Casper had.

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