N = int(input()) a = list(map(int, input().split())) s = sum(a) // (N - 1) kame = sum(s - x == 2 for x in a) print(kame, N - kame)