Given a list of integers, compute the one that appears most frequently.
If multiple integers are tied for most frequent, return the smallest such one.
The first line of the input consists of a single integer, .
The next line contains space-separated integers. represents the th integer in the list.
Output, on a single line, the smallest number that appears most frequently in the list.
4 1 1 2 2