
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
There are 1000 candies in a row. Firstly, Vasya ate the ninth candy from the left, and then ate every seventh candy moving to the right. After that, Petya ate the seventh candy from the left of the remaining candies, and then ate every ninth one of them, also moving to the right. How many candies are left after this?

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