n = int(eval(input()))

nums = set()



for i in range(n):

    a = int(eval(input()))



    try:

        nums.remove(a)

    except KeyError:

        nums.add(a)



print((len(nums)))

n = int(eval(input()))

times = {}



for i in range(n):

    a = int(eval(input()))

    times[a] = times.get(a, 0) + 1



cnt = 0



for i in times:

    if times[i]%2 == 1:

        cnt += 1



print(cnt)

n = int(eval(input()))
nums = set()
for i in range(n):
    a = int(eval(input()))
    try:
        nums.remove(a)
    except KeyError:
        nums.add(a)
print((len(nums)))

n = int(eval(input()))
times = {}
for i in range(n):
    a = int(eval(input()))
    times[a] = times.get(a, 0) + 1
cnt = 0
for i in times:
    if times[i] % 2 == 1:
        cnt += 1
print(cnt)

-nums = set() +times = {} -    try: -        nums.remove(a) -    except KeyError: -        nums.add(a) -print((len(nums))) +    times[a] = times.get(a, 0) + 1 +cnt = 0 +for i in times: +    if times[i] % 2 == 1: +        cnt += 1 +print(cnt)