import scala.math.abs

object Main extends App {
  
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt()
  val t, a = sc.nextInt()
  val h = Array.fill(n)(sc.nextInt())
  val temps = h.map(t - _ * 0.006)
  val diff = temps.map(temp => abs(a - temp))
  println(diff.indexOf(diff.min) + 1)
}