
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 military unit was moving in marching columns, where the number of rows exceeded the number of soldiers in each row by 5. When the enemy appeared, they reorganized into 5 rows, which increased the number of soldiers in each row by 845 soldiers.

How many soldiers were in the unit?

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