
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 spider has one sock, one glove, and one shoe for each of its eight legs, with the conditions that on each leg, the sock and the glove must be put on before the shoe, and the glove can be put on either before or after the sock. Calculate the number of different orders in which the spider can put on its socks, gloves, and shoes.

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