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