#include<stdio.h>
#define NUM 200

int main(void)
{
  int m,n_min,n_max,i,gap=0,new_gap,num;
  int p[NUM];

  while(1)
  {
    gap = 0;

    scanf("%d",&m);
    scanf("%d",&n_min);
    scanf("%d",&n_max);

    if(m==0&&n_min==0&&n_max==0)
    {
      break;
    }

    for(i=0;i<m;i++)
    {
      scanf("%d",&p[i]);
    }

    for(i=n_min;i<=n_max;i++)
    {
      new_gap = p[i-1] - p[i];
      if(gap<=new_gap)
      {
        gap = new_gap;
        num = i;
      }
    }
    printf("%d\n",num);
  }
  return 0;
}

