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(); } // your code goes here if(types[i]==1) count1++; else if(types[i]==2) count2++; else if(types[i]==3) count3++; else if(types[i]==4) count4++; else if(types[i]==5) count5++; max=math.max(math.max(math.max(math.max(count1,count2),count3),count4),count5); if(max=count1) System.out.println("1"); else if(max=count2) System.out.println("2"); else if(max=count3) System.out.println("3"); else if(max=count4) System.out.println("4"); else if(max=count5) System.out.println("5"); } }