#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, h, ans, max;
  cin >> n;
  max = 0;
  for (int i = 0; i < n; i++) {
    cin >> h;
    if (h > max) {
      max = h;
      ans = i + 1;
    }
  }
  cout << ans;
}
