#include <stdio.h>

int main(void){

  int m, nmax, nmin, i, gap, gapmax, p;

  while(1){
    scanf("%d %d %d", &m, &nmin, &nmax);
    if( (m == 0)&&(nmin == 0)&&(nmax == 0) ) break;

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

    gapmax = 0;
    gap = 0;
    p = 0;
    for(i = nmin; i <= nmax; i++){
      gap = P[i-1] - P[i];
      if(gapmax <= gap) {
        gapmax = gap;
        p = i-1;
      }
      
    }

    printf("%d\n", p);
    
  }

  
  return 0;
}
