#include <bits/stdc++.h>
using namespace std;
int a[100005];
int decl[100005] = {0};
int decr[100005] = {0};
int main() {
  int n, x, y;
  cin >> n >> x >> y;
  decl[1] = 10;
  decr[n] = 10;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (int i = 2; i <= n; i++) {
    if (a[i] < a[i - 1]) {
      decl[i] = decl[i - 1] + 1;
    } else {
      decl[i] = 1;
    }
  }
  for (int i = n - 1; i >= 1; i--) {
    if (a[i] < a[i + 1]) {
      decr[i] = decr[i + 1] + 1;
    } else {
      decr[i] = 0;
    }
  }
  for (int i = 1; i <= n; i++) {
    cout << decl[i] << " " << decr[i] << endl;
    if (decl[i] >= x + 1 && decr[i] >= y) {
      cout << i << endl;
      return 0;
    }
  }
  return 0;
}
