object Main extends App {
  val sc = new java.util.Scanner(System.in)
  var n = sc.nextInt()
  var t , a = sc.nextInt()
  var h = Array.fill(n)(sc.nextDouble())
  for (i <- 0 until h.length){
    h(i) = (a - (t - h(i) * 0.006)).abs
  }
  println(h.indexOf(h.min) + 1)
}
