#yukicoder 921 ずんだアロー import math from collections import Counter N = int(input()) A = list(map(int,input().split())) C = Counter(A) print(max(math.ceil(N / 2),max(C.values())))