N = int(input()) A = list(map(int, input().split())) X = sum(A) // (N - 1) print(A.count(X - 2), A.count(X - 4))