logo AlgoBeat OnlineJudge
登录 注册

#215314. [SWERC 2024] The king of SWERC

内存限制:2048 MiB 时间限制:500 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

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?

输入格式

The first line of the input is an integer, , the number of votes. The next lines describe the votes, and each contains a name in capital English letters, without spaces.

It is guaranteed one name appears strictly more than the others.

输出格式

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

样例

样例输入 1

1
RAMSES

样例输出 1

RAMSES

样例输入 2

4
JON
JOFFREY
TYWIN
JON

样例输出 2

JON

数据范围与提示

.

, for .