
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
Arrange the natural numbers from 1 to 7 in a row such that each number is either greater than all the numbers before it or less than all the numbers before it. For example, the arrangement 4356271 satisfies this condition: starting from the second position, 3 is less than the first number 4; 5 is greater than the first two numbers 4 and 3; 6 is greater than the first three numbers 4, 3, and 5; 2 is less than the first four numbers 4, 3, 5, and 6; 7 is greater than the first five numbers 4, 3, 5, 6, and 2; 1 is less than the first six numbers 4, 3, 5, 6, 2, and 7.

Determine the number of such arrangements where the number 7 does not occupy the fourth position.

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