#!/bin/python3 import sys from collections import Counter n = int(input().strip()) types = list(map(int, input().strip().split(' '))) # your code goes here types.sort() cnt=Counter(types) l=list(cnt.most_common()[0]) print(l[0])