import collections

n = int(eval(input()))

a = [int(eval(input())) for i in range(n)]

cnt = collections.Counter(a)

total = 0

for c, v in list(cnt.items()):

    if v%2 == 1:

        total += 1

print(total)
n = int(eval(input()))

s = set()

for i in range(n):

    a = int(eval(input()))

    if a in s:

        s.remove(a)

    else:

        s.add(a)

print((len(s)))

import collections

n = int(eval(input()))
a = [int(eval(input())) for i in range(n)]
cnt = collections.Counter(a)
total = 0
for c, v in list(cnt.items()):
    if v % 2 == 1:
        total += 1
print(total)

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

-import collections - -a = [int(eval(input())) for i in range(n)] -cnt = collections.Counter(a) -total = 0 -for c, v in list(cnt.items()): -    if v % 2 == 1: -        total += 1 -print(total) +s = set() +for i in range(n): +    a = int(eval(input())) +    if a in s: +        s.remove(a) +    else: +        s.add(a) +print((len(s)))