P15154 [SWERC 2024] The king of SWERC

Description

That's it! After years of research, you finally managed to find who was the king of the infamous South Western Egyptian River City (SWERC)! Well, not exactly. You have found the actual votes. But considering that the person who got the most votes got elected, and considering that there wasn't a tie for first place, can your code deduce who was the actual king of SWERC?

Input Format

The first line of the input is an integer, $N$, the number of votes. The next $N$ lines describe the votes, and each contains a name $V_i$ in capital English letters, without spaces. It is guaranteed one name appears strictly more than the others.

Output Format

The output should contain a single string, the name of the king of SWERC.

Explanation/Hint

$1\le N \le 500$. $1 \le |V_i| \le 20$, for $i = 1, 2, \cdots, n$.