function Main(input) {
  const data = input.split("\n")
  const temps = data[1].split(" ")
  const T = temps[0]
  const A = temps[1]
  const Hs = data[2].split(" ")
  
  const c = Hs.map( h => T - h*0.006)
    .reduce( (acc, t, i) => {
      return Math.abs(t - A) > Math.abs(acc[0] - A) ? acc : [t, i]
    }, [100000, 0])[1] + 1

  console.log(c);
}

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