
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 function $g$ is defined on the set of integers and satisfies \[g(m) = \begin{cases} m-3 & \mbox{if } m \ge 1010 \\ g(g(m+5)) & \mbox{if } m < 1010. \end{cases}\] Find $g(978)$.

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