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]; for(int types_i=0; types_i < n; types_i++){ types[types_i] = in.nextInt(); } int[] count = new int[5]; for(int a: types){ if(a == 1){ count[0] = count[0]+1; }else if(a==2){ count[1] = count[1]+1; }else if(a==3){ count[2] = count[2]+1; }else if(a==4){ count[3] = count[3]+1; }else{ count[4] = count[4]+1; } } int temp = 0; for(int a: count){ if(temp < a){ temp = a; } } System.out.print(temp+1); } }