import io.StdIn._
object Main extends App {
    val n = readInt
    val Array(t, a) = readLine.split(" ").map(_.toInt)
    val hs = readLine.split(" ").map(_.toInt).zipWithIndex

    val sorted = hs.sortWith((x,y) => (a-(t-x._1*0.006)).abs < (a-(t-y._1*0.006)).abs)
    val result = sorted.head._2+1
    println(result)
}