n = int(input()) a = list(map(int,input().split())) s = int(sum(a)/(n-1)) b=[s-i for i in a] t=b.count(2) k=b.count(4) print(f"{t} {k}")