
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 that the initial side of angle θ is the non-negative semi-axis of x, and its terminal side intersects with the unit circle centered at the origin at point M(a, $\frac{5}{13}$).
(1) Find the value of a;
(2) If angle θ is in the second quadrant, find the value of $\frac{\sin(\frac{\pi}{2} - \theta) + \sin(3\pi - \theta)}{\cos(\pi - \theta)}$.

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