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