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