#include <stdio.h>
#define MAX 200

int main(void)
{
  int m, n, nmin, nmax, i, j;
  int t=0, base=0, gap=0;
  int tokuten[MAX];
  
  while(t!=1)
    {
      scanf("%d %d %d",&m,&nmin,&nmax);
      if(m==0)
	{
	  t = 1;
	}
      /* ??\?????????????????§??????!!!
      if(m=0)
      {
        t = 1;
      }
      */
      else
	{
	  for(i=0;i<=m-1;i++)
	    {
	      scanf("%d",&tokuten[i]);
	    }
	  
	  for(i=nmin-1;i<=nmax-1;i++)
	    {
	      gap = tokuten[i]-tokuten[i+1];
	      
	      if(gap>=base)
		{
		  base = gap;
		  n = i + 1;
		}
	    }
	  printf("%d\n",n);
	  base = 0;
	}
    }
  return(0);
}