
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
Once upon a time, a drunkard was trying to bring a bamboo pole into a house. No matter how he tried, either horizontally or vertically, he couldn't get it through the door. When held horizontally, the pole was 4 feet longer than the width of the door frame, and when held vertically, it was 2 feet taller than the height of the door frame. Another drunkard suggested he try holding the pole diagonally across the two opposite corners of the door, and to his surprise, it fit perfectly. Do you know how long the bamboo pole was?

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