Census#4740

Census

1 saniye
128 megabayt
Çok kolay

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.

Giriş

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.

Çıktı

Output the age that occurs most frequently. If there are several such ages, output the smallest one among them.

Örnekler

Örnek 1

Loading
Loading

Örnek 2

Loading
Loading

Örnek 3

Loading
Loading