import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int numBirds = in.nextInt(); int[] types = new int[numBirds]; for(int types_i=0; types_i < numBirds; types_i++){ types[types_i] = in.nextInt(); } // your code goes here int[] counts = new int[5]; // iterate through the birds for(int i = 0; i < numBirds; i++) { int bird = types[i]; counts[bird-1] += 1; } int most = 0; for(int i = 0; i < 5; i++) { //System.out.println(most); if(most < counts[i] + 1) { //System.out.println(most); most = counts[i] + 1; } } System.out.println(most); } }