#No.1406 Test N = int(input()) if N == 1: Asum = 0 else: A = list(map(int, input().split())) Asum = sum(A) ans = 0 for i in range(101): if (Asum + i) % N == 0: ans += 1 print(ans)