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