from collections import Counter

N = int(eval(input()))

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

counter = Counter(src)



ans = 0

for v in list(counter.values()):

    if v%2 == 1:

        ans += 1

print(ans)

N = int(eval(input()))

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



ss = set()

for a in src:

    if a in ss:

        ss.remove(a)

    else:

        ss.add(a)

print((len(ss)))

from collections import Counter

N = int(eval(input()))
src = [int(eval(input())) for i in range(N)]
counter = Counter(src)
ans = 0
for v in list(counter.values()):
    if v % 2 == 1:
        ans += 1
print(ans)

N = int(eval(input()))
src = [int(eval(input())) for i in range(N)]
ss = set()
for a in src:
    if a in ss:
        ss.remove(a)
    else:
        ss.add(a)
print((len(ss)))

-from collections import Counter - -counter = Counter(src) -ans = 0 -for v in list(counter.values()): -    if v % 2 == 1: -        ans += 1 -print(ans) +ss = set() +for a in src: +    if a in ss: +        ss.remove(a) +    else: +        ss.add(a) +print((len(ss)))