import collections



N=int(eval(input()))

A=[int(eval(input())) for _ in range(N)]

A=collections.Counter(A)

A=list(A.items())



ans=0

for a in A:

  if a[1]%2==1:

    ans+=1

print(ans)
import sys

input = sys.stdin.buffer.readline



from collections import defaultdict



N = int(eval(input()))

A = [int(eval(input())) for _ in range(N)]



cnt = defaultdict(int)

for a in A:

    if cnt[a]:

        cnt[a] = 0

    else:

        cnt[a] = 1



print((sum(cnt.values())))
import collections

N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
A = collections.Counter(A)
A = list(A.items())
ans = 0
for a in A:
    if a[1] % 2 == 1:
        ans += 1
print(ans)

import sys

input = sys.stdin.buffer.readline
from collections import defaultdict

N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
cnt = defaultdict(int)
for a in A:
    if cnt[a]:
        cnt[a] = 0
    else:
        cnt[a] = 1
print((sum(cnt.values())))

-import collections +import sys + +input = sys.stdin.buffer.readline +from collections import defaultdict -A = collections.Counter(A) -A = list(A.items()) -ans = 0 +cnt = defaultdict(int) -    if a[1] % 2 == 1: -        ans += 1 -print(ans) +    if cnt[a]: +        cnt[a] = 0 +    else: +        cnt[a] = 1 +print((sum(cnt.values())))