N = int(eval(input()))

d = dict()

for _ in range(N):

    a = int(eval(input()))

    d[a] = d.get(a, 0) ^ 1

print((sum(d.values())))
N, *A = list(map(int, open(0).read().split()))

d = dict()

for a in A:

    d[a] = d.get(a, 0) ^ 1

print((sum(d.values())))
N = int(eval(input()))
d = dict()
for _ in range(N):
    a = int(eval(input()))
    d[a] = d.get(a, 0) ^ 1
print((sum(d.values())))

N, *A = list(map(int, open(0).read().split()))
d = dict()
for a in A:
    d[a] = d.get(a, 0) ^ 1
print((sum(d.values())))

-N = int(eval(input())) +N, *A = list(map(int, open(0).read().split())) -for _ in range(N): -    a = int(eval(input())) +for a in A: