
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class div {

	
	
	public static void main(String[] args) throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		PrintWriter pw=new PrintWriter(System.out);
		StringTokenizer st=new StringTokenizer(br.readLine());
		int n=Integer.parseInt(st.nextToken());
		int x=Integer.parseInt(st.nextToken());
		int y=Integer.parseInt(st.nextToken());
		st=new StringTokenizer(br.readLine());
		int a[]=new int[n];
		for(int i=0;i<n;i++) {
			a[i]=Integer.parseInt(st.nextToken());
		}
		int min=0;
		int q=x;int w=y;
		for(int i=0;i<n;i++) {
			if(a[i]>a[min]&&q<=0) {
					--w;
				
			}
			//		System.out.println(a[i]+" "+min);
			if(a[i]<=a[min]) {
				min=i;
				--q;
				w=y;
		//		System.out.println(i);
			}
			if(q<=0&&w==0) {
				pw.print(min+1);
				pw.flush();
				return;
			}
		}
		pw.print(min+1);
		pw.flush();
	}
}
