import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val n = sc.nextInt()
  val t = sc.nextInt()
  val a = sc.nextInt()
  val h = (1..n).map { sc.nextInt() }.toIntArray()

  var ans = 0
  var diff = Double.MAX_VALUE
  for (i in 0 until n) {
    val tmp = t - (h[i] * 6 / 1000.0)
    val tmpdiff = Math.abs(a.toDouble() - tmp)
    if (tmpdiff < diff) {
      diff = tmpdiff
      ans = i
    }
  }

  println(ans + 1)
}
