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 x = 0; int[] types = new int[5]; for(int types_i=0; types_i < n; types_i++){ switch( (x = in.nextInt()) ){ case 1: types[0] += 1; break; case 2: types[1] += 1; break; case 3: types[2] += 1; break; case 4: types[3] += 1; break; case 5: types[4] += 1; break; } } int maxIndex = 0; for(int y=1;y<5;y++){ if(types[maxIndex] < types[y]){ maxIndex = y; } } System.out.print(maxIndex+1); } }