n=int(eval(input()))

x=sorted([int(eval(input())) for i in range(n)])



def groupby(a):

    a2=[[a[0],1]]

    for i in range(1,len(a)):

        if a2[-1][0]==a[i]:

            a2[-1][1]+=1

        else:

            a2.append([a[i],1])

    return a2



y=groupby(x)

c=0

for i in y:

    if i[1]%2==1:

        c+=1

print(c)

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()))
x = sorted([int(eval(input())) for i in range(n)])


def groupby(a):
    a2 = [[a[0], 1]]
    for i in range(1, len(a)):
        if a2[-1][0] == a[i]:
            a2[-1][1] += 1
        else:
            a2.append([a[i], 1])
    return a2


y = groupby(x)
c = 0
for i in y:
    if i[1] % 2 == 1:
        c += 1
print(c)

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

-x = sorted([int(eval(input())) for i in range(n)]) - - -def groupby(a): -    a2 = [[a[0], 1]] -    for i in range(1, len(a)): -        if a2[-1][0] == a[i]: -            a2[-1][1] += 1 -        else: -            a2.append([a[i], 1]) -    return a2 - - -y = groupby(x) -c = 0 -for i in y: -    if i[1] % 2 == 1: -        c += 1 -print(c) +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)))