
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 three piles of balls with a total of 2012 balls. If the same number of balls is taken from each pile, the second pile still has 17 balls left, and the number of balls left in the first pile is twice the number of balls left in the third pile. How many balls were originally in the third pile?

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