from collections import Counter N, *A = map(int, open(0).read().split()) for s in range(2 * N, 4 * N + 1): if all(s - a in (2, 4) for a in A): C = Counter(s - a for a in A) print(C[2], C[4]) quit()