#include <bits/stdc++.h>
using namespace std;
const int MXN = 100;
int main() {
  int N;
  scanf("%d", &N);
  int H[MXN];
  for (int i = 0; i < N; i++) {
    scanf("%d", H + i);
  }
  int count = 1, pos = 0;
  int max = H[0];
  for (int i = 0; i < N; i++) {
    if (H[i] >= max) {
      max = H[i];
      pos = i;
    }
  }
  if (pos != 0)
    printf("%d\n", pos);
  else
    printf("1\n");
  return 0;
}
