You are given n lowercase words. Report the word that occurs the most times. If several words tie for the highest count, report the lexicographically smallest of them.
Input format
Line 1: an integer n, the number of words.
Line 2: n space-separated lowercase words.
Output format
One line: the most frequent word (lexicographically smallest on ties).
Constraints
- 1 <= n <= 100000
- 1 <= length of each word <= 50