N=int(input()) A=list(map(int,input().split())) #mn=min(A) #X=[a-mn for a in A] #print(X) #x*2+y*2=(N-1)*2 #x*2+y*4=A[0] B=[a//(N-1) for a in A] #print(B) m=min(B) if m==0==max(B): if A[0]//(N-1)==4:print(0,N) else:print(N,0) else: C=[x-m for x in B] #print(C) p=sum(C) q=N-p print(p,q)