from collections import Counter



N = int(eval(input()))

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



c = Counter(A)

ans = 0

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

    ans += v % 2

print(ans)
import sys

from collections import Counter



input = sys.stdin.readline



N = int(eval(input()))

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



ans = len([v for v in list(Counter(A).values()) if v % 2 == 1])

print(ans)
from collections import Counter

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

import sys
from collections import Counter

input = sys.stdin.readline
N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
ans = len([v for v in list(Counter(A).values()) if v % 2 == 1])
print(ans)

+import sys +input = sys.stdin.readline -c = Counter(A) -ans = 0 -for k, v in list(c.items()): -    ans += v % 2 +ans = len([v for v in list(Counter(A).values()) if v % 2 == 1])