d={}

for _ in[0]*int(eval(input())):

 i=eval(input())

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

print((sum(d.values())))
_,a,*s=open(0)

a={a}

for i in s:a^={i}

print((len(a)))
d = {}
for _ in [0] * int(eval(input())):
    i = eval(input())
    d[i] = d.get(i, 0) ^ 1
print((sum(d.values())))

_, a, *s = open(0)
a = {a}
for i in s:
    a ^= {i}
print((len(a)))

-d = {} -for _ in [0] * int(eval(input())): -    i = eval(input()) -    d[i] = d.get(i, 0) ^ 1 -print((sum(d.values()))) +_, a, *s = open(0) +a = {a} +for i in s: +    a ^= {i} +print((len(a)))