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[] score = new int[5]; for(int types_i=0; types_i < n; types_i++){ switch(in.nextInt()){ case 1: score[0]++; break; case 2: score[1]++; break; case 3: score[2]++; break; case 4: score[3]++; break; case 5: score[4]++; break; } } int max = 1; for (int i = 0; i<5;i++){ if (score[i]>score[max-1]) max=i+1; } // your code goes here System.out.println(String.valueOf(max)); } }