using System.Linq; using System; public class Hello { static void Main() { var n = int.Parse(Console.ReadLine().Trim()); int s; if (n == 1) s = 0; else { string[] line = Console.ReadLine().Trim().Split(' '); s = Array.ConvertAll(line, int.Parse).Sum(); } var count = 0; for (int i = 0; i <= 100; i++) if ((s + i) % n == 0) count++; Console.WriteLine(count); } }