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[] types = new int[n]; for(int types_i=0; types_i < n; types_i++){ types[types_i] = in.nextInt(); } // your code goes here int type1=0,type2=0,type3=0,type4=0,type5=0; for(int i=0 ; imax) { max=type2; t=2; } if(type3>max) { max=type3; t=3; } if(type4>max) { max=type4; t=4; } if(type5>max){ max=type5; t=5; } System.out.println(t); } }