## The Most Frequent

You are given an array of N integers separated by spaces, all in one line.
Display the element which occurs most frequently. If multiple elements satisfy this criteria, display the numerically smallest one.
Input Format The first line contains the number of integers \(N\).
The second line contains space separated integers \(xi\) for which you need to find the most frequent one.
Constraints \(10 \leq N \leq 1’000’000 \) \(0 \leq xi \leq 100’000 \) Output Format One line containing the result.
[Read More]