
object Main {

  def main(args: Array[String]) {
    val source = scala.io.Source.fromFile(args(0)).getLines

    while(true) {
      val  input: Array[Int] = source.next().split(" ").map(_.toInt)

      if (input.forall(_ == 0)) {
        return
      }

      val datas: Array[Int] = source.take(input(0)).map(_.toInt).toArray
      val maximum: (Int, Int) =  (input(1) to input(2)).map(n => (n, datas(n - 1) - datas(n))).reverse.maxBy(v => v._2)

      println(maximum._1)

    }
  }

}