n = int(input()) a = list(map(int,input().split())) ans = 0 while a != []: for i in a: ans += (a.count(i) // 2) a.remove(i) print(ans)