
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
In the Shanghai Masters, 8 top world tennis players are divided into two groups, with 4 people in each group. They will each play a round-robin tournament within their groups. The top two from each group will advance. Then, the first place from one group will play against the second place from the other group in a knockout round. The winners will compete for the championship and runner-up positions, while the losers will compete for the 3rd and 4th places. In total, there will be $\boxed{\text{number of matches}}$ in the Masters.

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