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