n = int(eval(input()))

A = set()

for _ in range(n):

    a = int(eval(input()))

    if a in A:

        A.remove(a)

    else:

        A.add(a)

print((len(A)))
import sys

n,*A = sys.stdin

B = set()

for a in A:

    if int(a) in B:

        B.remove(int(a))

    else:

        B.add(int(a))

print((len(B)))
n = int(eval(input()))
A = set()
for _ in range(n):
    a = int(eval(input()))
    if a in A:
        A.remove(a)
    else:
        A.add(a)
print((len(A)))

import sys

n, *A = sys.stdin
B = set()
for a in A:
    if int(a) in B:
        B.remove(int(a))
    else:
        B.add(int(a))
print((len(B)))

-n = int(eval(input())) -A = set() -for _ in range(n): -    a = int(eval(input())) -    if a in A: -        A.remove(a) +import sys + +n, *A = sys.stdin +B = set() +for a in A: +    if int(a) in B: +        B.remove(int(a)) -        A.add(a) -print((len(A))) +        B.add(int(a)) +print((len(B)))