n = int(input()) a = list(map(int, input().split())) s = 100 * n - sum(a) ans = 0 for an in range(101): if (s - an) % n == 0: ans += 1 print(ans)