
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
In a modified walking game, I start at a point and follow these rules: On move 1, I do nothing. For moves from 2 to 40, I take one step forward if the number is prime, two steps backwards if the number is composite, and stand still if the number is a perfect square. After completing 40 moves, I walk back to my original starting point. How many steps do I need to walk back?

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