import collections

N = int(eval(input()))

ans = 0

now = 0

k = []

for i in range(N):

  A = int(eval(input()))

  k.append(A)

p = collections.Counter(k)

for i in p:

  if p[i]%2 == 1:

    ans += 1

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

dict1 = {}

for i in range(N):

  A = eval(input())

  if A in dict1:

    del dict1[A]

  else:

    dict1[A] = 1

print((len(dict1)))
import collections

N = int(eval(input()))
ans = 0
now = 0
k = []
for i in range(N):
    A = int(eval(input()))
    k.append(A)
p = collections.Counter(k)
for i in p:
    if p[i] % 2 == 1:
        ans += 1
print(ans)

N = int(eval(input()))
dict1 = {}
for i in range(N):
    A = eval(input())
    if A in dict1:
        del dict1[A]
    else:
        dict1[A] = 1
print((len(dict1)))

-import collections - -ans = 0 -now = 0 -k = [] +dict1 = {} -    A = int(eval(input())) -    k.append(A) -p = collections.Counter(k) -for i in p: -    if p[i] % 2 == 1: -        ans += 1 -print(ans) +    A = eval(input()) +    if A in dict1: +        del dict1[A] +    else: +        dict1[A] = 1 +print((len(dict1)))