LearnPy Hub
← Arena
EasyRating 900

Most Common Bird

Birds are recorded by type id. Print the most frequently seen type; if several tie, print the smallest id.

Input

n, then n type ids.

Output

One integer.

Sample 1

Input
6
1 4 4 4 5 3
Output
4

Sample 2

Input
4
2 2 1 1
Output
1
solution.py
Output appears here
Most Common Bird · Python Arena problem · LearnPy Hub