#include <stdio.h>

int main(void)
{
    int m, nmin, nmax;
    int P[2001];
    int min;
    int i, j;
    int out;
    
    while (1){
        scanf("%d%d%d", &m, &nmin, &nmax);
        if (m == 0 && nmin == 0 && nmax == 0){
            break;
        }
        for (i = 0; i < m; i++){
            scanf("%d", &P[i]);
        }
        min = 10000;
        for (i = nmin; i <= nmax; i++){
            if (min >= P[i] - P[i - 1]){
                min = P[i] - P[i - 1];
                out = i;
            }
        }
        
        printf("%d\n", out);
    }
    
    return (0);
}

