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

#template

from collections import Counter

def inputlist(): return [int(k) for k in input().split()]

#template

N = int(eval(input()))

A = [0]*N

for i in range(N):

    A[i] = int(eval(input()))

c = Counter(A)

keys = list(c.keys())

ans = 0

for i in keys:

    if c[i] % 2 != 0:

        ans +=1

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

# template
from collections import Counter


def inputlist():
    return [int(k) for k in input().split()]


# template
N = int(eval(input()))
A = [0] * N
for i in range(N):
    A[i] = int(eval(input()))
c = Counter(A)
keys = list(c.keys())
ans = 0
for i in keys:
    if c[i] % 2 != 0:
        ans += 1
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))) +# template +from collections import Counter + + +def inputlist(): +    return [int(k) for k in input().split()] + + +# template +N = int(eval(input())) +A = [0] * N +for i in range(N): +    A[i] = int(eval(input())) +c = Counter(A) +keys = list(c.keys()) +ans = 0 +for i in keys: +    if c[i] % 2 != 0: +        ans += 1 +print(ans)