
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
The side of a square on graph paper is 1 unit. A rectangle with sides \( m \) and \( n \) is constructed along the grid lines. Is it possible to draw a closed polyline along the grid lines such that it passes through each grid node inside or on the boundary of the rectangle exactly once? If it is possible, what is its length?

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