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

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