// Aizu 1600: Entrance Examination
// 2017.9.21 bal4u@uu

#include <stdio.h>

int p[203];

int main()
{
	int m, nmin, nmax, i, gap, d, ans;

	while (scanf("%d%d%d", &m, &nmin, &nmax) && m) {
		for (i = 0; i < m; i++) scanf("%d", p+i);
		for (gap = -1, i = nmax-1; i >= nmin-1; i--) {
			if ((d = p[i] - p[i+1]) > gap) gap = d, ans = i+1;
		}
		printf("%d\n", ans);
	}
	return 0;
}