#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int x;
  long long int y;
  cin >> x >> y;
  long long int a[n + 1];
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
  }
  long long int c = 0, d = 0;
  for (long long int i = 0; i < n - 1; i++) {
    if (c == x) {
      if (d < y) {
        if (i == n - 2) {
          cout << i - d + 1 << endl;
          break;
        }
      }
      if (d == y) {
        cout << i - d + 1 << endl;
        break;
      }
      if (a[i] < a[i + 1]) {
        d++;
      }
    }
    if (n - x == 0) {
      cout << x << endl;
      break;
    }
    if (a[i] > a[i + 1]) {
      c++;
    }
    if (c > x) {
      c = 0;
      d = 0;
    }
  }
}
