N = int(eval(input()))

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





mydict = dict()

cnt = 0



for i in range(N):

    if not (A[i] in mydict):

        mydict[A[i]] = i

        

counter = [0] * N

for a in A:

    counter[mydict[a]] += 1

    

ans = 0

for c in counter:

    if c%2 == 1: ans += 1

    

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

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

import collections



c = collections.Counter(A)

ans = 0

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

    if t%2 == 1: ans += 1

    

print(ans)
N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
mydict = dict()
cnt = 0
for i in range(N):
    if not (A[i] in mydict):
        mydict[A[i]] = i
counter = [0] * N
for a in A:
    counter[mydict[a]] += 1
ans = 0
for c in counter:
    if c % 2 == 1:
        ans += 1
print(ans)

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

c = collections.Counter(A)
ans = 0
for t in list(c.values()):
    if t % 2 == 1:
        ans += 1
print(ans)

-mydict = dict() -cnt = 0 -for i in range(N): -    if not (A[i] in mydict): -        mydict[A[i]] = i -counter = [0] * N -for a in A: -    counter[mydict[a]] += 1 +import collections + +c = collections.Counter(A) -for c in counter: -    if c % 2 == 1: +for t in list(c.values()): +    if t % 2 == 1: