import java.util.Scanner; /** * Created by aayush on 10-02-2017. */ public class Solution { public static void main(String[] args) { Scanner in =new Scanner(System.in); int counter1=0; int counter2=0; int counter3=0; int counter4=0; int counter5=0; int n=in.nextInt(); int[] types=new int[5]; while(--n>=0) { int x=in.nextInt(); if(x==1) { counter1++; } else if(x==2) { counter2++; } else if(x==3) { counter3++; } else if(x==4) { counter4++; } else { counter5++; } } types[0]=counter1; types[1]=counter2; types[2]=counter3; types[3]=counter4; types[4]=counter5; int maxType=Integer.MIN_VALUE; int notConsiderType=0; //check for duplicacy for(int i=0;i