#include<stdio.h>

int main()
{
    int n, n_min, n_max, max, index, data, tmp;

    while(1){
        scanf("%d %d %d", &n, &n_min, &n_max);

        if ( n == 0 && n_max == 0 && n_min == 0 ) break;

        for(int i = data = tmp = 0, max = -1; i < n; i++){
            tmp = data;
            scanf("%d", &data);
            if( n_min <= i && i <= n_max ){
                if( max <= tmp - data ){
                    index = i;
                    max = tmp - data;
                }
            }
        }
        printf("%d\n", index);
    }
    return 0;
}