a =set()

n = int(eval(input()))

for _ in range(n):

    tmp = int(eval(input())) 

    if tmp in a:

        a.remove(tmp)

    else:

        a.add(tmp)

print((len(a)))

import sys

a =set()

n = int(sys.stdin.readline())

for _ in range(n):

    tmp = int(sys.stdin.readline()) 

    if tmp in a:

        a.remove(tmp)

    else:

        a.add(tmp)

print((len(a)))

a = set()
n = int(eval(input()))
for _ in range(n):
    tmp = int(eval(input()))
    if tmp in a:
        a.remove(tmp)
    else:
        a.add(tmp)
print((len(a)))

import sys

a = set()
n = int(sys.stdin.readline())
for _ in range(n):
    tmp = int(sys.stdin.readline())
    if tmp in a:
        a.remove(tmp)
    else:
        a.add(tmp)
print((len(a)))

+import sys + -n = int(eval(input())) +n = int(sys.stdin.readline()) -    tmp = int(eval(input())) +    tmp = int(sys.stdin.readline())