N=int(eval(input()))

A=[]

for i in range(N):

    A.append(int(eval(input())))

B=sorted(A)

ans=0

tmp=B[0]

cnt=1

for i in range(1,N):

    if(tmp==B[i]):

        cnt+=1

    else:

        ans+=(cnt%2)

        cnt=1

        tmp=B[i]

ans+=cnt%2

print(ans)
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)))
N = int(eval(input()))
A = []
for i in range(N):
    A.append(int(eval(input())))
B = sorted(A)
ans = 0
tmp = B[0]
cnt = 1
for i in range(1, N):
    if tmp == B[i]:
        cnt += 1
    else:
        ans += cnt % 2
        cnt = 1
        tmp = B[i]
ans += cnt % 2
print(ans)

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)))

-A = [] +s = set() -    A.append(int(eval(input()))) -B = sorted(A) -ans = 0 -tmp = B[0] -cnt = 1 -for i in range(1, N): -    if tmp == B[i]: -        cnt += 1 +    A = int(eval(input())) +    if A in s: +        s.remove(A) -        ans += cnt % 2 -        cnt = 1 -        tmp = B[i] -ans += cnt % 2 -print(ans) +        s.add(A) +print((len(s)))