
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
The Sustainable Development Committee of an oil and gas company has announced a competition to fill three intern positions. Although the position is entry-level, substantial erudition supported by real achievements is required. To send invitations to potential participants of the competition, it was decided to analyze the results of the Industry Olympiad team track over the past $\mathrm{N}$ years. Each winning team in the database is given as a string value consisting of three names, recorded in different orders.

Input data format:
- 1st line: The number of years the olympiad has been held, $1 \leq \mathrm{N} \leq 30$.
- Subsequent lines: Names of the winning teams, with names separated by spaces. Each name has a length of 1 to 10 characters and consists of upper and lowercase letters.

Output data format: The name of the team that won the most times, sorted alphabetically: the maximum number of victories for a team in the same composition.

The following test entry for input data is provided for verification:
```
8
Nadezhda Anna Pavel
Andrey Darya Luka Ilya Anna Pavel Ilya Arkady Pavel Luka Darya Andrey
Kristina Luka Zhora Nadezhda Zhora Kristina Kristina Maria Anna
```

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