from collections import Counter input() print(sum(v // 2 for v in Counter(map(int, input().split())).values()))