from collections import *

N = int(eval(input()))

C = Counter([int(eval(input())) for n in range(N)]) 

A = [1 for v in list(C.values()) if v%2==1]

print((sum(A)))
N,*A = open(0)

S = set()



for a in A:

  S^={int(a)}



print((len(S)))
from collections import *

N = int(eval(input()))
C = Counter([int(eval(input())) for n in range(N)])
A = [1 for v in list(C.values()) if v % 2 == 1]
print((sum(A)))

N, *A = open(0)
S = set()
for a in A:
    S ^= {int(a)}
print((len(S)))

-from collections import * - -N = int(eval(input())) -C = Counter([int(eval(input())) for n in range(N)]) -A = [1 for v in list(C.values()) if v % 2 == 1] -print((sum(A))) +N, *A = open(0) +S = set() +for a in A: +    S ^= {int(a)} +print((len(S)))