In the main building, there are residents, each with an age between and years. One morning, the faculty decided to determine which age group is the most numerous among the residents. Naturally, this task has been assigned to you.
Find the age that appears most frequently among the residents and output it.
The first line contains an integer (1 \leq N \leq 10^5), the number of residents in the main building. The second line contains integers, each representing the age of a resident. Each age is an integer between and inclusive.
Output the age that occurs most frequently. If there are several such ages, output the smallest one among them.
Örnek 1
Örnek 2
Örnek 3