N = int(eval(input()))

A = []

for _ in range(N):

    A.append(int(eval(input())))

A = sorted(A)

cnt = 1

ans = 0



for i in range(N-1):

    if(A[i] == A[i+1]):

        cnt += 1

        continue

    ans += cnt % 2

    cnt = 1



if(cnt % 2 == 1):

    ans += 1



print(ans)
import collections

N = int(eval(input()))

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



c = collections.Counter(A)



cnt = 0

for value in list(c.values()):

    if(value%2 != 0):

        cnt += 1

print(cnt)
N = int(eval(input()))
A = []
for _ in range(N):
    A.append(int(eval(input())))
A = sorted(A)
cnt = 1
ans = 0
for i in range(N - 1):
    if A[i] == A[i + 1]:
        cnt += 1
        continue
    ans += cnt % 2
    cnt = 1
if cnt % 2 == 1:
    ans += 1
print(ans)

import collections

N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
c = collections.Counter(A)
cnt = 0
for value in list(c.values()):
    if value % 2 != 0:
        cnt += 1
print(cnt)

+import collections + -A = [] -for _ in range(N): -    A.append(int(eval(input()))) -A = sorted(A) -cnt = 1 -ans = 0 -for i in range(N - 1): -    if A[i] == A[i + 1]: +A = [int(eval(input())) for _ in range(N)] +c = collections.Counter(A) +cnt = 0 +for value in list(c.values()): +    if value % 2 != 0: -        continue -    ans += cnt % 2 -    cnt = 1 -if cnt % 2 == 1: -    ans += 1 -print(ans) +print(cnt)