#include <stdio.h>

int m, n_min, n_max;
int P[200];

int main(void) {
	while (scanf("%d%d%d", &m, &n_min, &n_max) == 3 && (m | n_min | n_max) != 0) {
		int i;
		int answer = 0, answer_gap = -1;
		for (i = 0; i < m; i++) {
			if (scanf("%d", &P[i]) != 1) return 1;
		}
		for (i = n_min - 1; i < n_max; i++) {
			int gap = P[i] - P[i + 1];
			if (gap >= answer_gap) {
				answer = i + 1;
				answer_gap = gap;
			}
		}
		printf("%d\n", answer);
	}
	return 0;
}