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