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 */ var count = 0; var tallestCandle = 0; int n = int.Parse(Console.ReadLine()); var line = Console.ReadLine(); string[] tokens = line.Split(' '); int[] h = Array.ConvertAll(tokens, int.Parse); tallestCandle = h[0]; for (int i = 0; i < n; i++) { if (tallestCandle == h[i]) { count++; } if (tallestCandle < h[i]) { tallestCandle = h[i]; } } Console.WriteLine(count); } }