N = int(input()) A = list(map(int, input().split())) S = set() cnt = 0 for a in A: if a in S: cnt += 1 S.remove(a) else: S.add(a) print(cnt)