
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
A line $l$ passes through the point $P(-2, 1)$,  
(1) If line $l$ is parallel to the line $x+y-1=0$, find the equation of line $l$;  
(2) If the distance from point $A(-1, -2)$ to line $l$ is 1, find the equation of line $l$.

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