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); int maxInt = 0; int res = 0; int i = 0; for (i = 0; i < n; i++){ if (maxInt < height[i]){ maxInt = height[i]; } } for (i = 0; i < n; i++){ if (height[i] == maxInt) res++; } Console.WriteLine(res.ToString()); } }