N, *A = map(int, input().split()) if N == 1: print("101") exit() a=sum(A) z=0 for i in range(100+1): if(a+i)%N == 0: z+=1 print(z)