from collections import Counter

n=int(eval(input()))

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

c=Counter(a)



ans=0

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

    ans+=v%2

print(ans)
from collections import Counter

import sys

input = sys.stdin.buffer.readline

sys.setrecursionlimit(10 ** 7)



N = int(eval(input()))

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



ans = sum(v % 2 for v in list(c.values()))

print(ans)
from collections import Counter

n = int(eval(input()))
a = [eval(input()) for _ in range(n)]
c = Counter(a)
ans = 0
for k, v in list(c.items()):
    ans += v % 2
print(ans)

from collections import Counter
import sys

input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
N = int(eval(input()))
c = Counter([int(eval(input())) for _ in range(N)])
ans = sum(v % 2 for v in list(c.values()))
print(ans)

+import sys -n = int(eval(input())) -a = [eval(input()) for _ in range(n)] -c = Counter(a) -ans = 0 -for k, v in list(c.items()): -    ans += v % 2 +input = sys.stdin.buffer.readline +sys.setrecursionlimit(10**7) +N = int(eval(input())) +c = Counter([int(eval(input())) for _ in range(N)]) +ans = sum(v % 2 for v in list(c.values()))