import java.util.Scanner; 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(); } long[] c = new long[5]; for (int i = 0; i < types.length; i++) { c[types[i] - 1]++; } long max = c[0]; int maxI = 0; for (int i = 1; i < 5; i++) { if (c[i] > max) { max = c[i]; maxI = i; } } System.out.println(maxI + 1); } }