import collections N = int(input()) A = list(map(int, input().split(' '))) c = collections.Counter(A) print(sum([i[1]//2 for i in c.items()]))