n = int(input()) if n == 1: print(100) exit() alst = list(map(int, input().split())) tot = sum(alst) ans = 0 for i in range(0, 101): if (tot + i) % n == 0: ans += 1 print(ans)