"use strict";
function main(input) {
  const inputs = input.split("\n").filter(x => x !== "");

  const N = Number(inputs[0]);
  const T = Number(inputs[1].split(" ")[0]);
  const A = Number(inputs[1].split(" ")[1]);
  const H = inputs[2].split(" ").map(Number);

  const f = h => Math.abs(T - h * 0.006 - A);
  console.log(H.findIndex(h=> h === result[0]) + 1);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
