from collections import Counter N = int(input()) A = list(map(int, input().split())) counter = Counter() for a in A: counter[a] += 1 ans = 0 for _, v in counter.items(): ans += v // 2 print(ans)