import scala.io.{StdIn => in}

object Main extends App {
  val n = in.readInt
  val Array(t, a) = in.readLine.split(" ").map(_.toInt)
  val h = in.readLine.split(" ").map(_.toInt)
  val ans = h./:((Int.MaxValue, 0, 1)) { case((v, idx, i), hi) =>
      val vi = (a * 1000 - (t * 1000 - hi * 6)).abs
      if(vi < v) (vi, i, i + 1)
      else (v, idx, i + 1)
    }._2
  println(ans)
}