import java.lang.Math.abs

fun main(args: Array<String>){
    readLine()
    val conditions = readLine()!!.split(" ").map(String::toInt)
    val T = conditions[0]
    val A = conditions[1]

    val inpLIst = readLine()!!.split(" ").map(String::toInt)
    val minPlace = inpLIst.indexOf(inpLIst.minBy { abs(A - (T - it * 0.006)) })

    println(minPlace + 1)
}