# -*- coding: utf-8 -*-

n = int(eval(input()))



s = set([])

for _ in range(n):

    x = int(eval(input()))

    if x in s:

        s.remove(x)

    else:

        s.add(x)



print((len(s)))

# -*- coding: utf-8 -*-

n = int(eval(input()))

s = set()

for _ in range(n):

    a = eval(input())

    if a in s:

        s.remove(a)

    else:

        s.add(a)



print((len(s)))

# -*- coding: utf-8 -*-
n = int(eval(input()))
s = set([])
for _ in range(n):
    x = int(eval(input()))
    if x in s:
        s.remove(x)
    else:
        s.add(x)
print((len(s)))

# -*- coding: utf-8 -*-
n = int(eval(input()))
s = set()
for _ in range(n):
    a = eval(input())
    if a in s:
        s.remove(a)
    else:
        s.add(a)
print((len(s)))

-s = set([]) +s = set() -    x = int(eval(input())) -    if x in s: -        s.remove(x) +    a = eval(input()) +    if a in s: +        s.remove(a) -        s.add(x) +        s.add(a)