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 a=0; int b=0; int c=0; int d=0; int e=0; for(int types_i=0; types_i < n; types_i++){ if(types[types_i]==1) { a++; } else if(types[types_i]==2) { b++; } else if(types[types_i]==3) { c++; } else if(types[types_i]==4) { d++; } else if(types[types_i]==5) { e++; } } int A[]={a,b,c,d,e}; int u=A[0]; for(int g=1;g<5;g++) { if(u>A[g]) {;} else if(u