fun main(args: Array<String>) {
    val n = readLine()?.toInt() ?: return
    val (t, a) = readLine()?.split(" ")?.map { it.toInt() } ?: return
    val hList = readLine()?.split(" ")?.map { it.toInt() } ?: return

    var resultH = 0
    var minDiff = Double.MAX_VALUE
    for ((i, h) in hList.withIndex()) {
        val temperature = t - h * 0.006
        val diff = Math.abs(temperature - a)
        if (diff < minDiff) {
            resultH = i + 1
            minDiff = diff
        }
    }
    println(resultH)
}