'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 (Math.abs(t - e*0.006 - A))});
  let ans = 0;
  let Min =Math.min(...H);
  ans = H.indexOf(Min);
  console.log(ans+1);
  
}
 
main(require("fs").readFileSync("/dev/stdin", "utf8"));