#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(nullptr), cout.tie(nullptr);
  long long n, x, y;
  cin >> n;
  long long a[n + 5];
  for (long long i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (long long i = 1; i <= n; i++) {
    bool cond = true;
    for (long long j = max(i - x, (long long)1); j < i; j++) {
      if (a[i] <= a[j]) cond = false;
    }
    for (long long k = i + 1; k < min(i + y, n); k++) {
      if (a[i] <= a[k]) cond = false;
    }
    if (cond) cout << i << "\n";
  }
}
