import io.StdIn._
 
object Main extends App {
  val n = readInt
  val Seq(t, a) = readLine().split(" ").map(_.toInt).toList
  val hList = readLine().split(" ").map(_.toInt).toList
  val result = hList.zipWithIndex.map { case (h, i) =>
    val temperature = t - h * 0.006
    ((temperature - a).abs, i + 1)
  }.min
  println(result._2)
}