fun abs(x:Long) :Long{
    return if (x>=0) x else -x
}

fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val (t,a) = readLine()!!.split(" ").map(String::toLong)
    val h = readLine()!!.split(" ").map(String::toLong)
    var ans = arrayOf(0,10000000000000)
    for (i in 0 until n){
        val j = abs(a*1000-(t*1000-h[i]*6))
        if (j <ans[1]) {
            ans[0] = i.toLong()
            ans[1] = j
        }
    }
    print(ans[0]+1)
}