荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: westship (" "), 信区: ACMICPC
标  题: 第一道题:Let the Balloon Rise
发信站: 荔园晨风BBS站 (Sat May 22 13:59:10 2004)


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 prob
lem. 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 conta
in one color each. The color of a balloon is a string of up to 15 lower-case l
etters.

A test case with N = 0 terminates the input and this test case is not to be pr
ocessed.


Output

For each case, print the color of balloon for the most popular problem on a si
ngle 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


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店