Problem Description
Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges’ favorite time is guessing the most popular problem. When the contest is over, they will count the balloons of each color and find the result.
This year, they decide to leave this lovely job to you.
(又是比赛时间了!看到气球飘来飘去真让人兴奋。但是要告诉你一个秘密,评委们最喜欢的时间是猜测最受欢迎的问题。比赛结束后,他们会数一数每种颜色的气球并找到结果。今年,他们决定把这份可爱的工作留给你。)
Input
Input contains multiple test cases. Each test case starts with a number N (0 < N <= 1000) – the total number of balloons distributed. The next N lines contain one color each. The color of a balloon is a string of up to 15 lower-case letters.
A test case with N = 0 terminates the input and this test case is not to be processed.
(输入包含多个测试用例。每个测试用例从一个数字N开始(0< N<= 1000)—— 即气球的总数。下面N行每行包含一种颜色。气球的颜色是最多15个小写字母的字符串。)
Output
For each case, print the color of balloon for the most popular problem on a single line. It is guaranteed that there is a unique solution for each test case.
(对于每一种情况,在单行上打印最流行的气球颜色。保证每个测试用例都有唯一的解决方案。)
Sample Input
5
green
red
blue
red
red
3
pink
orange
pink
0