n=int(input()) if n==1:print(101);exit() s=sum(map(int,input().split())) c=0 for i in range(101): if (s+i)%n<1:c+=1 print(c)