n=int(input()) l=[int(i) for i in input().split()] l.sort() j=0 count=0 while l!=[]: while j!=len(l) and l[0]==l[j]: j+=1 if j==1: count+=1 l=l[j:] j=0 print(count)