#include<stdio.h>
int main()
{
  int m,nmin,nmax;
  int gap,result;
  int score,prescore;
  int i;
  while(1)
    {
      scanf("%d%d%d",&m,&nmin,&nmax);
      if((m==0)&&(nmin==0)&&(nmax==0)) break;
      result=nmin;
      gap=0;
      for(i=0;i<m;i++)
	{
	  if(i>0) prescore=score;
	  scanf("%d",&score);
	  if((i>=nmin)&&(i<=nmax))
	    {
	      if(prescore-score>=gap)
		{
		  result=i;
		  gap=prescore-score;
		}
	    }
	}
      printf("%d\n",result);
    }
  return 0;
}