object Main extends App {
    val n:Int = scala.io.StdIn.readLine().toInt
    val Array(t, a) = scala.io.StdIn.readLine().split("\\s").map(_.toInt)
    val h = scala.io.StdIn.readLine().split("\\s").map(_.toInt)

    var diff:Double = Math.pow(10,15)
    var result:Int = 0

    for (i <- 1 to n) {
      val tmp_h = h(i-1)
      val tmp_t = t - tmp_h * 0.006
      val tmp_diff = a - tmp_t
      if (diff > tmp_diff) {
        diff = tmp_diff
        result = i
      }
    }

    println(result)
}