#include<stdio.h>
#include<stdlib.h>
int main(void){
    int n,N,m,i,j,k=0;
    int p[10000];
    int *answer;

    while(1){
    scanf("%d %d %d",&m,&n,&N);
    if(m==0){
        break;
    }
    for(i=0;i<m;i++){
        scanf("%d",&p[i]);
    }
   int temp=0;
   int q;
    for(i=n;i<=N;i++){
        if(temp<=p[i-1]-p[i]){
            temp=p[i-1]-p[i];
            q=i;
        }
    }
    answer[k]=q;
    k++;
    }
    for(j=0;j<k;j++){
    printf("%d\n",answer[j]);
    }
return 0;
}