# your code goes here N=int(input()) A=[int(i) for i in input().split()] S=0 for i in range(len(A)): S+=A[i] N-=1 #print(N) S//=N S//=2 N+=1 M=N*2 #print(M) #print(S) t=M-S k=N-t print(t,k)