n = int(eval(input()))



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



ans.sort()



s = sorted(set(ans))

t = 0

cnt = 0



result = 0

for i in range(n):

    temp = s[t]

    if ans[i] == temp:

        cnt += 1

    else:

        if cnt % 2 == 1:

            result += 1

        cnt = 1

        t += 1

else:

    if cnt % 2 == 1:

        result += 1

        

    

    



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

 

ans = set()

 

 

for i in range(n):

    ans ^= {eval(input())}

 

print((len(ans)))
n = int(eval(input()))
ans = [eval(input()) for i in range(n)]
ans.sort()
s = sorted(set(ans))
t = 0
cnt = 0
result = 0
for i in range(n):
    temp = s[t]
    if ans[i] == temp:
        cnt += 1
    else:
        if cnt % 2 == 1:
            result += 1
        cnt = 1
        t += 1
else:
    if cnt % 2 == 1:
        result += 1
print(result)

n = int(eval(input()))
ans = set()
for i in range(n):
    ans ^= {eval(input())}
print((len(ans)))

-ans = [eval(input()) for i in range(n)] -ans.sort() -s = sorted(set(ans)) -t = 0 -cnt = 0 -result = 0 +ans = set() -    temp = s[t] -    if ans[i] == temp: -        cnt += 1 -    else: -        if cnt % 2 == 1: -            result += 1 -        cnt = 1 -        t += 1 -else: -    if cnt % 2 == 1: -        result += 1 -print(result) +    ans ^= {eval(input())} +print((len(ans)))