n = int(input()) a = list(map(int,input().split())) a_set = set(a) count = 0 for i in a_set: count += a.count(i) // 2 print(count)