using System; using System.Collections.Generic; using System.IO; 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 = Convert.ToInt32(Console.ReadLine()); string[] arr_temp = Console.ReadLine().Split(' '); int[] arr = Array.ConvertAll(arr_temp,Int32.Parse); int max = 0; int cand =0; for(int i =0; i< n;i++) { if(arr[i] > max) max = arr[i]; } for(int i =0; i< n;i++) { if(arr[i] == max) cand++; } Console.WriteLine(cand); } }