object Main extends App {
  val N = io.StdIn.readLine.toInt
  val TA = io.StdIn.readLine.split(' ')
  val T = TA.head
  val A = TA.last
  val Hs = io.StdIn.readLine.split(' ').map(_.toInt)

  val min = Hs.map(hi => math.abs(A.toDouble - (T.toDouble - hi * 0.006))).zipWithIndex.min

  println(min._2 + 1)
}
