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.sortBy { case (h, _) => (A - T + h * 0.006).abs }
  println(index + 1)
}
