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 n = in.nextInt(); int[] types = new int[n]; int one=0, two=0, three=0, four=0, five=0; for(int types_i=0; types_i < n; types_i++){ types[types_i] = in.nextInt(); // System.out.println(types[types_i]); if(types[types_i] == 1){ one++; } else if(types[types_i] == 2){ two++; } else if(types[types_i] == 3){ three++; } else if(types[types_i] == 4){ four++; } else if(types[types_i] == 5){ five++; } } // System.out.println(); // your code goes here // System.out.println(one); // System.out.println(two); // System.out.println(three); //System.out.println(four); //System.out.println(five); // System.out.println(); int[] highest = {one, two, three, four, five}; int maxi = highest[0]; for(int j: highest){ if(j > maxi){ maxi = highest[j]; } } System.out.println(maxi+1); } }