N = int(input()) Nup = (N-1)*N a = [int(i) for i in input().split()] kame = int((sum(a)-2*Nup)/2/(N-1)) turu = N - kame print(turu,kame)