N = int(eval(input()))

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



A.sort()



result = 0

cur = 0

while cur < N:

    a = A[cur]

    count = 0

    while cur < N and A[cur] == a:

        cur += 1

        count += 1

    result += count % 2



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

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



paper = set()

for a in A:

    paper ^= {a}



print((len(paper)))
N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
A.sort()
result = 0
cur = 0
while cur < N:
    a = A[cur]
    count = 0
    while cur < N and A[cur] == a:
        cur += 1
        count += 1
    result += count % 2
print(result)

N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
paper = set()
for a in A:
    paper ^= {a}
print((len(paper)))

-A.sort() -result = 0 -cur = 0 -while cur < N: -    a = A[cur] -    count = 0 -    while cur < N and A[cur] == a: -        cur += 1 -        count += 1 -    result += count % 2 -print(result) +paper = set() +for a in A: +    paper ^= {a} +print((len(paper)))