import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int numCandles = Integer.valueOf(br.readLine()); String [] candles = br.readLine().split(" "); Map height = new HashMap<>(); for(int i = 0; i < numCandles; i++){ if(height.containsKey(candles[i])) { height.put(candles[i], height.get(candles[i]) + 1); } else { height.put(candles[i], 1); } } Integer max = 0; String candle = null; for(Map.Entry entry : height.entrySet()) { if(entry.getValue() > max) { max = entry.getValue(); candle = entry.getKey(); } } System.out.println(height.get(candle)); } }