N = int(input()) if N == 1: print(101) else: A = list(map(int, input().split())) Sum = sum(A) Answer = 0 for I in range(101): if (Sum + I) % N == 0: Answer += 1 print(Answer)