
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
Five people stand in a line, each wearing a different hat numbered $1, 2, 3, 4, 5$. Each person can only see the hats of the people in front of them. Xiao Wang cannot see any hats; Xiao Zha can only see hat $4$; Xiao Tian does not see hat $3$, but can see hat $1$; Xiao Yan can see three hats, but not hat $3$; Xiao Wei can see hat $3$ and hat $2$. What number hat is Xiao Wei wearing?

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