
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 a chess festival that is held in a school with  $2017$  students, each pair of students played at most one match versus each other. In the end, it is seen that for any pair of students which have played a match versus each other, at least one of them has played at most  $22$  matches. What is the maximum possible number of matches in this event?

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