# encoding: utf-8

N = int(eval(input()))

A = [int(eval(input())) for i in range(N)]



A.sort()



tag = -1

cnt = 0

ans = 0

for Ai in A:

    if Ai > tag:

        tag = Ai

        ans += cnt % 2

        cnt = 0

    cnt += 1

else:

    ans += cnt % 2

        

print(ans)
N = int(eval(input()))

A = [eval(input()) for _ in range(N)]



cnt = {}

for Ai in A:

    key = str(Ai)

    cnt[key] = cnt.setdefault(key, 0) + 1



ans = sum([cnt[key] % 2 for key in list(cnt.keys())])

print(ans)
# encoding: utf-8
N = int(eval(input()))
A = [int(eval(input())) for i in range(N)]
A.sort()
tag = -1
cnt = 0
ans = 0
for Ai in A:
    if Ai > tag:
        tag = Ai
        ans += cnt % 2
        cnt = 0
    cnt += 1
else:
    ans += cnt % 2
print(ans)

N = int(eval(input()))
A = [eval(input()) for _ in range(N)]
cnt = {}
for Ai in A:
    key = str(Ai)
    cnt[key] = cnt.setdefault(key, 0) + 1
ans = sum([cnt[key] % 2 for key in list(cnt.keys())])
print(ans)

-# encoding: utf-8 -A = [int(eval(input())) for i in range(N)] -A.sort() -tag = -1 -cnt = 0 -ans = 0 +A = [eval(input()) for _ in range(N)] +cnt = {} -    if Ai > tag: -        tag = Ai -        ans += cnt % 2 -        cnt = 0 -    cnt += 1 -else: -    ans += cnt % 2 +    key = str(Ai) +    cnt[key] = cnt.setdefault(key, 0) + 1 +ans = sum([cnt[key] % 2 for key in list(cnt.keys())])