
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
(The full score of this question is 12 points)  
It is known that $\{a_n\}$ is an arithmetic sequence, and $a_2 = 1$, $a_5 = -5$.  
(1) Find the general term $a_n$ of the sequence $\{a_n\}$.  
(2) Find the maximum value of the sum of the first $n$ terms of $\{a_n\}$, denoted as $S_n$.

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