import scala.io.StdIn._
object Main extends App {

  val n = readInt
  val Array(t, a) = readLine.trim.split(' ').map(_.toInt)
  val heights = readLine.trim.split(' ').map(_.toInt)
  println(heights.indices.minBy{i ⇒ math.abs(a - t + heights(i) * 0.006)} + 1)
}