题目链接:B - Election (atcoder.jp)
Problem Statement
An election is taking place.
N people voted. The i-th person (1≤i≤N) cast a vote to the candidate named Si.
Find the name of the candidate who received the most votes. The given input guarantees that there is a unique candidate with the most votes.
Constraints
- 1≤N≤100
- Si is a string of length between 1 and 10 (inclusive) consisting of lowercase English letters.
- N is an integer.
- There is a unique candidate with the most votes.
Input
Input is given from Standard Input in the following format:
N S1 S2 SN
Output
Print the name of the candidate who received the most votes.
Sample Input 1
5 snuke snuke takahashi takahashi