#include <stdio.h>
#define max(X, Y) ((X) > (Y) ? (X) : (Y))
#define min(X, Y) ((X) < (Y) ? (X) : (Y))

int m, minv, maxv;
int p[205];

int main()
{
    scanf("%d %d %d", &m, &minv, &maxv);

    while (m) {
        int ans = -1;
        int max_gap = -1;
        
        for (int i = 0; i < m; i++) {
            scanf("%d", &p[i]);
        }

        for (int i = maxv; i >= minv; i--) {

            int gap = p[i - 1] - p[i];

            if (gap > max_gap) {
                max_gap = gap;
                ans = i;
            }
        }

        printf("%d\n", ans);
        
        scanf("%d %d %d", &m, &minv, &maxv);
    }
    

    return 0;
}

