import java.util.Scanner

object Main extends App {
  val scanner = new Scanner(System.in)
  val n = scanner.nextInt()
  val t = scanner.nextInt()*1000
  val a = scanner.nextInt()*1000
  val h = Array.fill(n)(scanner.nextInt()).map(_*1000)
  val result = h.map(hn=>{
    val diff = a-(t-hn*6)
    if (diff>0){
      diff
    } else {
      -diff
    }
  }).zipWithIndex.minBy(_._1)._2
  println(result+1)
}