Midterm elections are here. Help your local election commission by counting the votes and reporting the winner. If more than one candidate ties for the most votes, print all of their names in alphabetical order.
The first line holds the number of votes n (1≤n≤1000). Each of the next n lines holds one vote, which is a candidate name. A name consists of capital letters only and is 1 to 20 letters long.
Print the name of the candidate with the most votes. If several candidates tie for the most votes, print all of their names in alphabetical order, one per line. Print no spaces, and print no blank line between names.