N=int(input()) A=list(map(int,input().split())) if len(set(A))==1: if A[0]//(N-1)==4:print(0,N) else:print(N,0) else: m=min(A) kame=sum([x-m for x in A])//2 print(N-kame, kame)