fun main(args:Array<String>) {
    val n = readLine()!!.toInt()
    val (t,a) = readLine()!!.split(" ").map { it.toInt() }
    val pointList = readLine()!!.split(" ").map { it.toInt() }.let { a-> a.indices.map { Pos(it + 1, a[it]) }}.sortedBy { Math.abs(a - ( t - (0.006.toDouble() * it.takasa))) }
    println(pointList[0].idx)
}

class Pos(val idx:Int, val takasa:Int)