#include <stdio.h>

int main()
{
	int m, nmin, nmax, j, diff, ans;
	int P[10001];
	while (scanf("%d%d%d", &m, &nmin, &nmax) && m) {
		diff = -1;
		for (int i = 0; i < m; i++)
			scanf("%d", P + i);
		for (int i = nmin - 1; i < nmax; i++) {
			// for (j = i + 1; P[i] == P[j] && j < m; j++) // 間違えてた
			for (j = i + 1; P[i] == P[j] && j < nmax; j++) ;
			if (diff <= P[i] - P[j]) {
				diff = P[i] - P[j];
				ans = i + 1;
			}
		}
		printf("%d\n", ans);
	}
	return 0;
}

