from collections import Counter

c = Counter([int(input()) for _ in range(int(input()))])

print(len([x for x in list(c.values()) if x % 2 == 1]))

from collections import Counter

print(len([x for x in list(Counter([int(input()) for _ in range(int(input()))]).values()) if x % 2 == 1]))

from collections import Counter

c = Counter([int(input()) for _ in range(int(input()))])
print(len([x for x in list(c.values()) if x % 2 == 1]))

from collections import Counter

print(
    len(
        [
            x
            for x in list(Counter([int(input()) for _ in range(int(input()))]).values())
            if x % 2 == 1
        ]
    )
)

-c = Counter([int(input()) for _ in range(int(input()))]) -print(len([x for x in list(c.values()) if x % 2 == 1])) +print( +    len( +        [ +            x +            for x in list(Counter([int(input()) for _ in range(int(input()))]).values()) +            if x % 2 == 1 +        ] +    ) +)