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