import 'dart:io';

void main() {
  int n = int.parse(stdin.readLineSync());
  List ta = stdin.readLineSync().split(" ").map((x) => int.parse(x)).toList();
  List hn = stdin.readLineSync().split(" ").map((x) => int.parse(x)).toList();

  List tempList = [];
  tempList.add({"temp": ta[1], "i": n + 1});
  for (int i = 0; i < n; i++) {
    double temp = ta[0] - (hn[i] * 0.006);
    tempList.add({"temp": temp, "i": i + 1});
  }
  List sortTempList = tempList..sort((b, a) => a["temp"].compareTo(b["temp"]));
  var aPlus;
  var aMinus;
  int ans;
  for (int i = 0; i < n; i++) {
    if (sortTempList[i]["temp"] == ta[1]) {
      if (i == 0) {
        ans = sortTempList[i + 1]["i"];
      } else if (i == n - 1) {
        ans = sortTempList[i - 1]["i"];
      } else {
        aPlus = sortTempList[i - 1];
        aMinus = sortTempList[i + 1];
        ans = ((aPlus["temp"] - ta[1]) <= (aMinus["temp"] - ta[1]))
            ? aPlus["i"]
            : aMinus["i"];
      }
    }
  }
  print(ans);
}
