from collections import Counter



N = int(eval(input()))

A = []

for i in range(N):

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



cntr = Counter(A)



ans = 0

for v in list(cntr.values()):

    ans += v%2



print(ans)
n = int(eval(input()))

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





a_set = set()

for ai in a:

    if ai in a_set:

        a_set.remove(ai)

    else:

        a_set.add(ai)

        

print((len(a_set)))
from collections import Counter

N = int(eval(input()))
A = []
for i in range(N):
    A.append(int(eval(input())))
cntr = Counter(A)
ans = 0
for v in list(cntr.values()):
    ans += v % 2
print(ans)

n = int(eval(input()))
a = [int(eval(input())) for _ in range(n)]
a_set = set()
for ai in a:
    if ai in a_set:
        a_set.remove(ai)
    else:
        a_set.add(ai)
print((len(a_set)))

-from collections import Counter - -N = int(eval(input())) -A = [] -for i in range(N): -    A.append(int(eval(input()))) -cntr = Counter(A) -ans = 0 -for v in list(cntr.values()): -    ans += v % 2 -print(ans) +n = int(eval(input())) +a = [int(eval(input())) for _ in range(n)] +a_set = set() +for ai in a: +    if ai in a_set: +        a_set.remove(ai) +    else: +        a_set.add(ai) +print((len(a_set)))