from collections import Counter

n=int(eval(input()))

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



count = Counter(a)

ans=0

for i in list(count.values()):

    ans+=i%2

print(ans)
import sys

input = sys.stdin.readline

from collections import Counter

n=int(eval(input()))

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



count = Counter(a)

ans=0

for i in list(count.values()):

    ans+=i%2

print(ans)
from collections import Counter

n = int(eval(input()))
a = [int(eval(input())) for i in range(n)]
count = Counter(a)
ans = 0
for i in list(count.values()):
    ans += i % 2
print(ans)

import sys

input = sys.stdin.readline
from collections import Counter

n = int(eval(input()))
a = [int(eval(input())) for i in range(n)]
count = Counter(a)
ans = 0
for i in list(count.values()):
    ans += i % 2
print(ans)

+import sys + +input = sys.stdin.readline