fun main (args : Array<String>) {
	readLine()
	val (t, a) = readLine()!!.split(" ")
	val T : Int = t.toInt()
	var A : Int = a.toInt()
	val l = readLine()!!.split(" ")
	val list : MutableList<Int> = mutableListOf()
	var calc1 : Double
	var calc2 : Double
	var calc3 : Double = 0.0
	var result : Int = 0
	for (i in 0..l.size - 1) {
		list.add(l[i].toInt())
	}
	for (i in 0..list.size - 1) {
		calc1 = T - (list[i] * 0.006)
		if (A >= calc1) {
			calc2 = A - calc1
		} else {
			calc2 = calc1 - A
		}
		if (i == 0) calc3 = calc2
		if (calc3 >= calc2) {
			result = i + 1
			calc3 = calc2
		}
	}
	println("${result}")
}