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