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 diff = Double.MAX_VALUE
    var minIndex = n
    hs.forEachIndexed { i, h ->
        val temp = t - h * 0.006
        val d = Math.abs(a - temp)
        if (d < diff) {
            diff = d
            minIndex = i
        }
    }
    println(minIndex + 1)
}
