#include <stdio.h>
#include <stdlib.h>
#define ll long long
#define rep(i,l,r)for(ll i=l;i<r;i++)
int downll(const void*a, const void*b){return*(ll*)a<*(ll*)b?1:*(ll*)a>*(ll*)b?-1:0;}
void sortdown(ll*a,int n){qsort(a,n,sizeof(ll),downll);}

ll a[210];
int main(){
	ll n,l,r;
	while(scanf("%lld%lld%lld",&n,&l,&r),n){
		rep(i,0,n)scanf("%lld",a+i);
		sortdown(a,n);
		ll M=0;
		ll cnt;
		rep(i,l-1,r){
			if(M<=a[i]-a[i+1]){
				M=a[i]-a[i+1];
				cnt=i+1;
			}
		}
		printf("%lld\n",cnt);
	}
}
