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