N = int(input())
import sys
if N == 1:
    print(101)
    exit()
A = list(map(int,input().split()))
S = sum(A)
ans = 0
for i in range(101):
    if (S + i) % N == 0:
        ans += 1
print(ans)