from collections import Counter N=int(input()) A=list(map(int,input().split())) ans=0 for a,c in Counter(A).items(): ans+=c//2 print(ans)