fun main(args: Array<String>) {
  val N = readLine()!!.toInt()
  val (T,A) = readLine()!!.split(" ").map{it.toDouble()}
  val H = readLine()!!.split(" ").map{it ->
    val ondo = T - (it.toDouble()*0.006)
    Math.abs(A - ondo)
  }
  println(H.indexOf(H.min()) + 1)
}