#include<stdio.h>

int main()
{

  int A[ 210 ];
  int m, min, max, dummy, gap, line;
  int i;

  while( scanf( "%d %d %d", &m, &min, &max ), m ){

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

    for( i = min; i <= max; i++ ){
      dummy = A[ i ] - A[ i + 1 ];

      if( dummy >= gap ){
	gap = dummy;
	line = i;
      }
    }

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

  return 0;

}