fun main(arr:Array<String>) {
    val n = readLine()!!.toInt()
    val (t,a) = readLine()!!.split(" ").map { it.toInt() }
    val h = readLine()!!.split(" ").map { t -  it.toInt() * 0.006 }.map { Math.abs(it - a) }
    val ans = h.indices.minBy { h[it] }!! +1
    println(ans)
}


