
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 a rectangular prism with positive integer side lengths \( m \), \( n \), and \( r \) such that \( m \leq n \leq r \). After painting the surface of the rectangular prism red, it is cut into unit cubes. It is known that the number of unit cubes without red faces plus the number of unit cubes with two red faces, minus the number of unit cubes with one red face equals 1985. Find the values of \( m \), \( n \), and \( r \).

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