object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N, T, A = sc.nextInt()
  val Hs = List.fill(N)(sc.nextInt())
  val ((_, index), _) =
    Hs.zipWithIndex.map { case (h, i) =>
      (h -> i) -> math.abs(A - T + h * 0.006)
    }.minBy { case (_, diff) => diff }
  println(index + 1)
}
