input() As = input().split() d = {} c = {} for A in As: if A in c: continue if A in d: del d[A] c[A] = None else: d[A] = None print(len(d))