
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
Let \( a_{1}, a_{2}, \cdots, a_{n} \) be an arithmetic sequence, and it is given that
$$
\sum_{i=1}^{n}\left|a_{i}+j\right|=2028 \text{ for } j=0,1,2,3. 
$$
Find the maximum value of the number of terms \( n \).

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