private fun readInts() = readLine()!!.split(" ").map { it.toInt() }

fun main(args: Array<String>) {
    val N = readInts()[0]
    val (T, A) = readInts()
    val H = readInts()

    var diff = Double.MAX_VALUE
    var point = -1
    H.forEachIndexed { index, h ->
        val averageDiff = Math.abs(A - (T - h * 0.006))
        if (averageDiff < diff) {
            diff = averageDiff
            point = index + 1
        }
    }

    println(point)
}