
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 rectangular prism with integer edge lengths is painted red on its entire surface and then cut into smaller cubes with edge length 1. Among these smaller cubes, 40 cubes have two red faces and 66 cubes have one red face. What is the volume of this rectangular prism?

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