import java.io.*; import java.util.Scanner; import java.util.StringTokenizer; import java.lang.Math; public class ADALAb3 { public static void main(String[] args) throws IOException { BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); String n1=input.readLine(); int n=Integer.parseInt(n1); int[] array = new int[n]; String s2=input.readLine(); int a1=0,a2=0,a3=0,a4=0,a5=0,a6=0; for(int i=0;i<(n+(n-1));i++ ){ char a=s2.charAt(i); if(a=='1') a1++; else if(a=='2') a2++; else if(a=='3') a3++; else if(a=='4') a4++; else if(a==' ') a6++; else a5++; } int k; if(a1>a2) k=a1; else if(a1a3) k=k; else if(ka4) k=k; else if(ka5) k=k; else if(k