import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String agrs[]){ Scanner scan = new Scanner(System.in); TreeMap set = new TreeMap<>(); int candels = scan.nextInt(); int cur; for(int i = 0; i < candels; i++){ cur = scan.nextInt(); int total = 1; if(set.containsKey(cur)){ total = set.get(cur) + 1; } set.put(cur, total); }//end for System.out.println(set.get(set.lastKey())); } }