using System; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var count = 0; var sum = 0; if (N == 1) count = 101; else { var input = Console.ReadLine(); sum = input.Split().Select(int.Parse).Sum(); for (int i = 0; i <= 100; i++) { if ((sum + i) % N == 0) count++; } } Console.WriteLine(count); } }