import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double minDiff = 1000000;
        int minH = 0;
        for(int i = 0; i < N; i++){
            double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ;
            if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            }
        }
        sc.close();

        System.out.println(minH + 1);
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double minDiff = 1000000;
        int minH = 0;
        for(int i = 0; i < N; i++){
            double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ;
            if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            }
        }
        sc.close();

        System.out.println(minH + 1);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double minDiff = 1000000;
        int minH = 0;
        for(int i = 0; i < N; i++){
            double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ;
            if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            }
        }
        sc.close();

        System.out.println(minH + 1);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double minDiff = 1000000;
        int minH = 0;
        for(int i = 0; i < N; i++){
            double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ;
            if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            }
        }
        sc.close();

        System.out.println(minH + 1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc double minDiff = 1000000; minDiff 1000000 int minH = 0; minH 0 for(int i = 0; i < N; i++){
            double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ;
            if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ;
            if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            }
        } {
            double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ;
            if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            }
        } double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ; diff Math.abs(A - (T - sc.nextInt() * 0.006)) Math.abs Math A - (T - sc.nextInt() * 0.006) A (T - sc.nextInt() * 0.006) T sc.nextInt() * 0.006 sc.nextInt() sc.nextInt sc 0.006 if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            } diff < minDiff diff minDiff {
                minH = i;
                minDiff = diff;
            } minH = i minH i minDiff = diff minDiff diff sc.close() sc.close sc System.out.println(minH + 1) System.out.println System.out System System.out minH + 1 minH 1 String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double minDiff = 1000000;
        int minH = 0;
        for(int i = 0; i < N; i++){
            double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ;
            if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            }
        }
        sc.close();

        System.out.println(minH + 1);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double minDiff = 1000000;
        int minH = 0;
        for(int i = 0; i < N; i++){
            double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ;
            if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            }
        }
        sc.close();

        System.out.println(minH + 1);
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double minDiff = 1000000;
        int minH = 0;
        for(int i = 0; i < N; i++){
            double diff = Math.abs(A - (T - sc.nextInt() * 0.006)) ;
            if(diff < minDiff) {
                minH = i;
                minDiff = diff;
            }
        }
        sc.close();

        System.out.println(minH + 1);
    }

}