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 max=0,max1=0; int n = in.nextInt(); if(n<5 || n>200000)System.exit(1); int[] types = new int[n]; for(int types_i=0; types_i < n; types_i++){ types[types_i] = in.nextInt(); if(types[types_i]>5||types[types_i]<1)System.exit(1); } int ctr[]={0,0,0,0,0}; // your code goes here for(int j=0;jmax){max=ctr[1];max1=2;} if(ctr[2]>max){max=ctr[2];max1=3;} if(ctr[3]>max){max=ctr[3];max1=4;} if(ctr[4]>max){max=ctr[4];max1=5;} } System.out.println(max1); } }