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

    var idx = 0
    var d = 100000.0
    for (i in 0..n-1) {
        val result = t - (hs[i] * 0.006)
        var ds =  Math.abs(a - result)
        if (ds == d) {
            idx = i + 1
            break;
        }

        if ( ds < d) {
            d = ds
            idx = i + 1
        }
    }

    println("$idx")
}
