N = int(eval(input()))

S = set([])

for i in range(N):

    st = eval(input())

    if set([st]) <= S:

        S -= set([st])

    else:

        S.add(st)



print((len(S)))

N=int(eval(input()))

D=dict()

for i in range(N):

    a=int(eval(input()))

    if a in D:

        D[a]+=1

    else:

        D[a]=1



ans=0

for i in D:

    if D[i]%2==1:

        ans+=1

print(ans)

N = int(eval(input()))
S = set([])
for i in range(N):
    st = eval(input())
    if set([st]) <= S:
        S -= set([st])
    else:
        S.add(st)
print((len(S)))

N = int(eval(input()))
D = dict()
for i in range(N):
    a = int(eval(input()))
    if a in D:
        D[a] += 1
    else:
        D[a] = 1
ans = 0
for i in D:
    if D[i] % 2 == 1:
        ans += 1
print(ans)

-S = set([]) +D = dict() -    st = eval(input()) -    if set([st]) <= S: -        S -= set([st]) +    a = int(eval(input())) +    if a in D: +        D[a] += 1 -        S.add(st) -print((len(S))) +        D[a] = 1 +ans = 0 +for i in D: +    if D[i] % 2 == 1: +        ans += 1 +print(ans)