object Main extends App {
    val in = io.Source.stdin.getLines
    for (x <- in; r@Array(m, nmin, nmax) = x.split(" ").map(_.toInt) if r.exists(_ != 0)) {
        val ps = in.take(m).map(_.toInt)
        println(ps.zipWithIndex.foldLeft((0, 0, 0)){
            case ((gap, p0, res), (p1, i)) if (nmin - 1 to nmax).contains(i) =>
                if (p0 - p1 >= gap) (p0 - p1, p1, i) else (gap, p1, res)
            case y => y._1
        }._3)
    }
}