#coding: UTF-8 import sys import re import itertools from math import sqrt from collections import deque ### defs ### ### main ### N = int(sys.stdin.readline()) A = list(map(int,sys.stdin.readline().split())) s = sum(A)/(N-1) foot = list(map(lambda x:s-x, A)) print(len(list(filter(lambda x:x==2, foot))), len(list(filter(lambda x:x==4, foot))))