'use strict'
 
function main(n) {
  let num = n.split("\n")[0]*1;
  let t = n.split("\n")[1].split(" ")[0]*1;
  let A = n.split("\n")[1].split(" ")[1]*1;
  let H = n.split("\n")[2].split(" ").map((e)=>{return (t - e*0.006)});
  let diff =[];
  let ans = 0;
  for(let i = 0; i < num; i++){
  	diff.push(Math.abs(H[i] - A));
  }
  let Min = Math.min(...diff);
  ans = diff.indexOf(Min);
  console.log(ans+1);
  
}
 
main(require("fs").readFileSync("/dev/stdin", "utf8"));