n = int(input()) a = list(map(int,input().split())) x = 0 a.sort() for i in range(n-1): #print(a[i],a[i+1]) if a[i] != a[i+1]: x += 1 print(x//2)