import java.lang.Math.abs

fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val l2 = readLine()!!.split(" ")
    val t = l2[0].toInt()
    val a = l2[1].toDouble()
    val h = readLine()!!.split(" ").map { it.toInt() }.map { t - it * 0.006 }

    var result = 1
    var tmp = Double.MAX_VALUE
    for (i in (1..n)) {
        val diff = abs(h[i-1] - a)
        if (diff < tmp) {
            tmp = diff
            result = i
        }
    }

    print(result)
}