
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 general gathers his troops. When he arranges them in groups of 2, one soldier is left over. When he arranges them in groups of 3, two soldiers are left over. When he arranges them in groups of 5, three soldiers are left over. If the general arranges his soldiers in groups of 30, how many soldiers will be left over?

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