n, *A = map(int, open(0).read().split()) if n == 0: print(101) exit() a = sum(A) ans = 0 for i in range(101): if (a + i) % n == 0: ans += 1 print(ans)