function main(input) {
  var N = input[0]-0;
  var T = input[1].split(" ")[0]-0;
  var A = input[1].split(" ")[1]-0;
  var H = input[2].split(" ").map(v=>v-0);
  var ans = 0;
  var min = null;
  H.forEach((v,i)=>{
    var dis = Math.abs(A-(T-v*0.006));
    if(min===null || Math.abs(min) >= dis){
      min = dis;
      ans = i+1;
    }
  });
  console.log(ans);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
