N=int(input()) A=list(map(int,input().split())) if N==1: print(101) else: A_sum=sum(A) K=0 for x in range(101): if (A_sum+x)%N==0: K+=1 print(K)