Jungyu has N number cards. Each card has one integer written on it, and that integer is at least −262 and at most 262.
Given the cards Jungyu holds, write a program that finds the integer he holds the most copies of. If several integers are tied for the largest count, print the smallest of them.
Input
The first line contains the number of cards N (1≤N≤100,000). Each of the next N lines contains one integer written on a card.
Output
Print the integer that Jungyu holds the most copies of.