#include <bits/stdc++.h>
using namespace std;

int main() {
	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	for(int m, n_min, n_max; cin >> m >> n_min >> n_max && m;) {
		vector<int> p(m);
		for(auto &e : p) cin >> e;

		int ans = -1;
		int mx = -1;
		for(int n = n_min; n <= n_max; ++n) {
			const int gap = p[n - 1] - p[n];
			if(mx <= gap) {
				ans = n;
				mx = gap;
			}
		}

		cout << ans << endl;
	}

	return EXIT_SUCCESS;
}