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 */ Console.ReadLine(); int[] arr = Array.ConvertAll(Console.ReadLine().Split(' '),Int32.Parse); int max = int.MinValue; int count = 1 ; foreach(int num in arr){ if(num > max){ max = num; } else if(num == max){ count++; } } Console.WriteLine(count); } }