N=int(eval(input()))

s=[int(eval(input())) for i in range(N)]

d,ans={},0

for j in s:

    d[j]=d.get(j,0)+1

d=list(d.values())

for k in range(len(d)):

    if d[k]%2==1:

        ans+=1

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

s=[int(eval(input())) for i in range(N)]

d,ans={},0

for j in s:

    d[j]=d.get(j,0)+1

d=list(d.values())

for k in d:

    if k%2==1:

        ans+=1

print(ans)   
N = int(eval(input()))
s = [int(eval(input())) for i in range(N)]
d, ans = {}, 0
for j in s:
    d[j] = d.get(j, 0) + 1
d = list(d.values())
for k in range(len(d)):
    if d[k] % 2 == 1:
        ans += 1
print(ans)

N = int(eval(input()))
s = [int(eval(input())) for i in range(N)]
d, ans = {}, 0
for j in s:
    d[j] = d.get(j, 0) + 1
d = list(d.values())
for k in d:
    if k % 2 == 1:
        ans += 1
print(ans)

-for k in range(len(d)): -    if d[k] % 2 == 1: +for k in d: +    if k % 2 == 1: