object Main extends App {
  val n: Int = readInt
  val l1: Array[Int] = readLine.split(" ").map(_.toInt)
  val (t, a) = (l1(0), l1(1))
  val h: Array[Int] = readLine.split(" ").map(_.toInt)

  var min = Int.MaxValue.toDouble
  var index = 1
  h.zipWithIndex.foreach {
    case (height, i) =>
      val diff = (a.toDouble - (t - height * 0.006)).abs
      if (diff < min)  {
        min   = diff
        index = i + 1
      }
  }
  println(index)
}
