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