fun main(args: Array<String>) {
    readLine()
    val (t, a) = readLine()!!.split(' ').map { it.toInt() }
    val hs = readLine()!!.split(' ').map { it.toInt() }

    var m = Double.MAX_VALUE
    var r = -1

    hs.forEachIndexed { i, x ->
        val y = Math.abs(a - (t - x * 0.006))
        if (y < m) {
            m = y
            r = i
        }
    }

    println(r + 1)
}
