import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val n = sc.nextInt()
    val t = sc.nextInt()
    val a = sc.nextInt()
    println((1..n)
        .map {
            Pair(it, Math.abs(a - (t - sc.nextDouble() * 0.006)))
        }
        .minBy { it.second }!!
        .first)
}