def main(): N = int(input()) if N == 1: print(101) exit() A = list(map(int, input().split())) total = sum(A) count = 0 for i in range(0, 101): if (total + i ) % N == 0: count += 1 print(count) if __name__ == '__main__': main()