#include<stdio.h>

int main(void)
{
	int m, nmin, nmax, i, j;
	int temp1, temp2;
	int P[201];
	int s[201];
	
	while(scanf("%d %d %d",&m,&nmin,&nmax))
	{
		if(m==0&&nmin==0&&nmax==0)
		break;
		else
		{
			for(i=1;i<=m;i++)
			{
				scanf("%d",&P[i]);
				//printf("P[%d] = %d\n",i,P[i]);
			}
			j = 0;
			temp1 = 0;
			temp2 = 0;
			for(i=nmin;i<=nmax;i++)
			{
				s[j] = P[i] - P[i+1];
				if(s[j]>=temp1)
				{
					temp1 = s[j];
					temp2 = i;
				}
				j++;
			}
			printf("%d\n",temp2);
		}
	}
	return 0;
}