
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
Given an arithmetic sequence $\{a_n\}$ with the first term being a positive number, and the sum of the first $n$ terms is $S_n$. If $a_{1006}$ and $a_{1007}$ are the two roots of the equation $x^2 - 2012x - 2011 = 0$, then the maximum value of the positive integer $n$ for which $S_n > 0$ holds is ______.

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