from collections import Counter n = int(input()) A = list(map(int, input().split())) counter = Counter(A) ans = (n + 1) // 2 for cnt in counter.values(): ans = max(ans, cnt) print(ans)