n = int(eval(input()))

d = dict()

for _ in range(n):

    a = int(eval(input()))

    d.setdefault(a, -1)

    d[a] *= -1



ans = 0    

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

    if v == 1:

        ans += 1

print(ans)

from collections import Counter

n = int(eval(input()))

a = [int(eval(input())) for i in range(n)]

p = Counter(a)

ans = 0

for i in p:

    if p[i] % 2 == 1:

        ans += 1

print(ans)

n = int(eval(input()))
d = dict()
for _ in range(n):
    a = int(eval(input()))
    d.setdefault(a, -1)
    d[a] *= -1
ans = 0
for k, v in list(d.items()):
    if v == 1:
        ans += 1
print(ans)

from collections import Counter

n = int(eval(input()))
a = [int(eval(input())) for i in range(n)]
p = Counter(a)
ans = 0
for i in p:
    if p[i] % 2 == 1:
        ans += 1
print(ans)

+from collections import Counter + -d = dict() -for _ in range(n): -    a = int(eval(input())) -    d.setdefault(a, -1) -    d[a] *= -1 +a = [int(eval(input())) for i in range(n)] +p = Counter(a) -for k, v in list(d.items()): -    if v == 1: +for i in p: +    if p[i] % 2 == 1: