using System; namespace Candles { public class Program { static void Main(string[] args) { int n = Int32.Parse(Console.ReadLine()); string [] input = Console.ReadLine().Split(' '); int [] myArray = Array.ConvertAll(input, int.Parse); int max; int count = 0; max = myArray[0]; count++; for(int i=1;i max) { max = myArray[i]; count = 1; } else if (myArray[i] == max) { count++; } } Console.WriteLine(count); } } }