import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Solution { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] ar = Arrays.stream(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray(); int[] ar2 = new int[5]; int[] max = new int[2]; for (int i=0; i max[1]) { max[0] = i; max[1] = ar2[i]; } } System.out.println(max[0]+1); } }