using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */ int n = Int32.Parse(Console.ReadLine()); int[] arr = Array.ConvertAll(Console.ReadLine().Split(' '), Int32.Parse); int max = arr.Max(); int count = 0; for(int i = 0; i < n; i++){ if(arr[i] == max){ count++; } } Console.WriteLine(count); } }