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