N=int(input()) A=list(map(int,input().split())) ans=0 S=set(A) for s in S: ans+=A.count(s)//2 print(ans)