N = int(eval(input()))

A = {}

for i in range(N):

    a = int(eval(input()))

    A.setdefault(a, 0)

    if a in A:

        A[a]+=1

count = 0

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

    if v%2!=0:

        count += 1

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

cnt = 0

A = {}

for i in range(N):

    a = int(eval(input()))

    if a not in A:

        A[a] = 1

        cnt += 1

    else:

        A.pop(a)

        cnt -= 1

print(cnt)
N = int(eval(input()))
A = {}
for i in range(N):
    a = int(eval(input()))
    A.setdefault(a, 0)
    if a in A:
        A[a] += 1
count = 0
for v in list(A.values()):
    if v % 2 != 0:
        count += 1
print(count)

N = int(eval(input()))
cnt = 0
A = {}
for i in range(N):
    a = int(eval(input()))
    if a not in A:
        A[a] = 1
        cnt += 1
    else:
        A.pop(a)
        cnt -= 1
print(cnt)

+cnt = 0 -    A.setdefault(a, 0) -    if a in A: -        A[a] += 1 -count = 0 -for v in list(A.values()): -    if v % 2 != 0: -        count += 1 -print(count) +    if a not in A: +        A[a] = 1 +        cnt += 1 +    else: +        A.pop(a) +        cnt -= 1 +print(cnt)