import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); sc.nextLine(); System.out.println(countTallest(sc.nextLine().split(" "))); } private static int countTallest(String[] in){ int max = 0; Map heights = new HashMap(); for (int i=0; imax) max = current; if (heights.containsKey(current)) heights.put(current, heights.get(current) + 1); else heights.put(current, 1); } return heights.get(max); } }