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) { max = 1; } else if (b >= a && b >= c && b >= d && b >= e) { max = 2; } else if (c >= a && c >= b && c >= d && c >= e) { max = 3; } else if (d >= a && d >= b && d >= c && d >= e) { max = 4; } else { max = 5; } System.out.println(max); } }