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 count_1=0; int count_2=0; int count_3=0; int count_4=0; int count_5=0; for(int types_i=0; types_i < n; types_i++){ types[types_i] = in.nextInt(); if(types[types_i]==1){ count_1++; } if(types[types_i]==2){ count_2++; } if(types[types_i]==3){ count_3++; } if(types[types_i]==4){ count_4++; } if(types[types_i]==5){ count_5++; } } int[] count_array={count_1,count_2,count_3,count_4,count_5}; int max=0; for(int i=4;i>=0;i--){ if(count_array[i]>max){ max=count_array[i]; } } for(int i=0;i