#ENGLISHP27. Mode of Sequence

Mode of Sequence

Description

Given a sequence of N number. Find the mode M in the sequence so that the number of M's appear in the sequence is maximum.

Input Format

First line: one positive integers N (N <= 100).
Second line: N positive integers (<= 100000).

Output Format

One integer M.

7
1 3 2 4 4 3 3

3