2646The name of the people

2646   The name of the people

题目描述

In the Name of people is bound to be the hottest TV series these days. The anti-corruption storm has aroused the audiences’ great interests. And the classic emoticon(表情包)of Secretary LiDakang has been quite popular among the teenagers. Well, who is the popular king of this TV series? Please find out the most popular role according to the voting conditions.

输入格式:

There are multiple cases.

The first line in each case contains the total voting number n(0<n<1000). On the following n lines, there’s a name representing the role that a netizen votes for. The role’s name only consists of lowercase and uppercase letters.

输出格式:

For each case, outputs the role that is the most popular. (We assures that the answer is unique.)

输入样例 复制
6
HouLiangpin
LiDakang
LiDakang
QiTongwei
LuYike
ChenHai
输出样例 复制
LiDakang

说明

19
65
通过提交
时空限制1000ms/32mb
题目来源数据结构实验与竞赛训练
评测方式在线评测
题目类型
难        度