from collections import * N = int(input()) C = Counter(map(int, input().split())) ans = 0 for k, v in C.items(): ans += v // 2 print(ans)