import java.util.Scanner; public class MigratoryBirds { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] types = new int[n]; //int type1 = 0,type2 = 0,type3 = 0,type4 = 0,type5 = 0; int[] count = new int[5]; for(int types_i=0; types_i < n; types_i++){ types[types_i] = in.nextInt(); if(types[types_i] == 1){ count[0]++; } if(types[types_i] == 2){ count[1]++; } if(types[types_i] == 3){ count[2]++; } if(types[types_i] == 4){ count[3]++; } if(types[types_i] == 5){ count[4]++; } } // your code goes here int min_index = 0; for(int i=1;i<5;i++){ if(count[i] > count[min_index]){ min_index = i; } } System.out.println(++min_index); in.close(); } }