
object Main extends App {
  import scala.io.StdIn.{readInt, readLine}

  val elevationRate = 0.006
  def averageTemperature(T: Double)(elevation: Int) : Double = T - elevation * elevationRate

  val _ = readInt()
  val Array(t, a) = readLine().split(' ').map(_.toInt)
  val elevations = readLine().split(' ').map(_.toInt)

  val (_, bestElevationIndex) = elevations.zipWithIndex.foldLeft((0, 0))((minWithIndex, elevationWitchIndex) => {
    val distanceFromA = (averageTemperature(t)(elevationWitchIndex._1) - a).abs
    if (minWithIndex._1 > distanceFromA) elevationWitchIndex else minWithIndex
  })

  println(bestElevationIndex)
}