#include<stdio.h>

int main(void){
	int m;
	int min, max;
	int gap = 0;
	int pos;
	int i;
	
	while(1){
	gap = 0;
	scanf("%d %d %d", &m, &min, &max);
	if ( m == 0 && min == 0 && max == 0 ) {
		break;
	}
	int score[m] = {0};
	for ( i = 0; i < m; i++ ) {
		scanf("%d", &score[i]);
	}
	
	for ( i = min; i <= max; i++ ) {
		if ( gap <= score[i-1] - score[i] ) {
			gap = score[i-1] - score[i];
			pos = i;
		}
	}
	printf("%d\n", pos);
	}
	return 0;
}
