object Main extends App {
  import scala.math.abs
  
  val n = readInt
  val Array(t,a) = readLine split(' ') map{_.toInt}
  val h = readLine split(' ') map{_.toInt}
  val dif = h map {case x => abs(a - (t - x*0.006))}
  println(dif.indexOf(dif.min)+1)
}