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 type1 = 0; int type2 = 0; int type3 = 0; int type4 = 0; int type5 = 0; for (int i = 0; i < n; i++) { int type = in.nextInt(); if (type == 1) { type1++; } else if (type == 2) { type2++; } else if (type == 3) { type3++; } else if (type == 4) { type4++; } else { type5++; } } in.close(); int types[] = {type1, type2, type3, type4, type5}; int result = 0; int resultType = 1; for(int i=0; i<5; i++){ int value = types[i]; if(value > result){ result = value; resultType = i + 1; } } System.out.println(resultType); } }