object Main {
  def main(args:Array[String]):Unit={
    var N = readLine.toInt
    var TA = readLine.split(" ").map(a => a.toInt)
    var H = readLine.split(" ").map(a => a.toInt)
    var res = -1
    var min = scala.Int.MaxValue
    for(i <- 0 until N){
      var temp = TA(0)-H(i)*0.006
      var diff = scala.math.abs(TA(1)-temp)
      if(diff<min){
        res=i
        min=diff
      }
    }
    println(res)
  }
  
}