import java.io.*;
import java.util.*;
import java.lang.*;
 
public class Main {
 
    private static final FS scanner = new FS(System.in);
 
	public static void main(String[] args) throws Exception {
        int q = scanner.nextInt();
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        int countX = 0;
        int countY = -1;
        long prev = Long.MAX_VALUE;
        int indexD = -1;
        long[] items = new long[q];
        for (int i = 0; i < q; i++) {
            items[i] = scanner.nextLong();
        }
        for (int i = 0; i < q; i++) {
            if (countX < x) {
                if (items[i] < prev) {
                    countX++;
                }

                if (countX == q) {
                    indexD = countX;
                }
            }
            else if (countY == -1) {
                indexD = i + 1;
                countY++;
            }
            else if (countY < y ) {
                if (prev < items[i]) {
                    countY++;
                }
                else {
                    countX = 1;
                    countY = -1;
                    indexD = -1;
                }
            }
            else {
                break;
            }

            prev = items[i];

        }

        System.out.println(indexD);
    }
	
    static class FS {
        BufferedReader br;
        StringTokenizer st;

        public FS(InputStream i) {
            br = new BufferedReader(new InputStreamReader(i));
            st = new StringTokenizer("");
        }

        public String next() throws IOException {
            if(st.hasMoreTokens())
                return st.nextToken();
            else
                st = new StringTokenizer(br.readLine());
            return next();
        }

        public int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        public long nextLong() throws IOException {
            return Long.parseLong(next());
        }
        public double nextDouble() throws IOException {
            return Double.parseDouble(next());
        }
    }
 
}