import java.util.Scanner; import java.util.TreeMap; public class A { public static void main(String[] args) { Scanner in = new Scanner(System.in); in.nextInt(); TreeMap map = new TreeMap<>(); in.forEachRemaining( s -> { Integer n = new Integer(s); map.put(n, map.getOrDefault(n, 0) + 1); } ); System.out.println(map.lastEntry().getValue()); } }