using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { int n = Convert.ToInt32(Console.ReadLine()); string[] height_temp = Console.ReadLine().Split(' '); int[] height = Array.ConvertAll(height_temp, Int32.Parse); Array.Sort(height); int max = height[height.Length-1]; int count = 0; foreach(int l in height) { if (l == max) count++; } Console.WriteLine(count); } }