import java.lang.Math.abs
import java.math.BigDecimal
import java.util.*

fun main(args : Array<String>) {
    val scanner = Scanner(System.`in`)
    println(inOutExec(scanner))
}

fun inOutExec(scanner: Scanner): String {
    val num = scanner.nextInt()
    val tempAve = scanner.nextInt()
    val tempExpected = scanner.nextInt()
    var result = 0
    var temp = 1000000.0f
    repeat(num) {
        val height = scanner.nextInt()
        val xx = tempAve - BigDecimal(height * 6).divide(BigDecimal(1000)).toFloat()
        val yy = abs(tempExpected - xx)
        if (temp > yy) {
            temp = yy
            result = it
        }
    }

    return (result+1).toString()
}