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(); } int a=0,b=0,c=0,d=0,e=0; for(int i=0;i=b && a>=c && a>=d && a>=e) System.out.println("1"); else if(b>=a && b>=c && b>=d && b>=e) System.out.println("2"); else if(c>=a && c>=b && c>=d && c>=e) System.out.println("3"); else if(d>=a && d>=b && d>=c && d>=e) System.out.println("4"); else System.out.println("5"); // your code goes heren } }