n = int(eval(input()))

al = list(int(eval(input())) for _ in range(n))



s = set()



for a in al:

    s ^= {a}



print((len(s)))



from collections import Counter



n = int(eval(input()))

al = list(int(eval(input())) for _ in range(n))

c = Counter(al)

ans = 0

for k, v in list(c.items()):

    if v%2 != 0:

        ans += 1



print(ans)
n = int(eval(input()))
al = list(int(eval(input())) for _ in range(n))
s = set()
for a in al:
    s ^= {a}
print((len(s)))

from collections import Counter

n = int(eval(input()))
al = list(int(eval(input())) for _ in range(n))
c = Counter(al)
ans = 0
for k, v in list(c.items()):
    if v % 2 != 0:
        ans += 1
print(ans)

+from collections import Counter + -s = set() -for a in al: -    s ^= {a} -print((len(s))) +c = Counter(al) +ans = 0 +for k, v in list(c.items()): +    if v % 2 != 0: +        ans += 1 +print(ans)