N = int(eval(input()))

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



paper = set()

for a in A:

    if a in paper:

        paper.remove(a)

    else:

        paper.add(a)

ans = len(paper)

print(ans)
from collections import Counter

with open(0) as f:

    N, *A = list(map(int, f.read().split()))

ans = sum(1 for v in list(Counter(A).values()) if v&1)

print(ans)
N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
paper = set()
for a in A:
    if a in paper:
        paper.remove(a)
    else:
        paper.add(a)
ans = len(paper)
print(ans)

from collections import Counter

with open(0) as f:
    N, *A = list(map(int, f.read().split()))
ans = sum(1 for v in list(Counter(A).values()) if v & 1)
print(ans)

-N = int(eval(input())) -A = [int(eval(input())) for _ in range(N)] -paper = set() -for a in A: -    if a in paper: -        paper.remove(a) -    else: -        paper.add(a) -ans = len(paper) +from collections import Counter + +with open(0) as f: +    N, *A = list(map(int, f.read().split())) +ans = sum(1 for v in list(Counter(A).values()) if v & 1)