import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double T = sc.nextDouble();
        double A = sc.nextDouble();
        double[] H = new double[N];
        for(int i = 0; i < N; i++) H[i] = sc.nextDouble();
        int ans = 0;
        for(int i = 0; i < N; i++) {
            if(dif(A,temp(T,H[ans])) > dif(A,temp(T,H[i])))
                ans = i;
        }
        System.out.println(ans+1);
    }

    static double temp(double T, double h) {
        return T - h * 0.006;
    }

    static double dif(double T, double A) {
        return Math.abs(A - T);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double T = sc.nextDouble();
        double A = sc.nextDouble();
        double[] H = new double[N];
        for(int i = 0; i < N; i++) H[i] = sc.nextDouble();
        int ans = 0;
        for(int i = 0; i < N; i++) {
            if(dif(A,temp(T,H[ans])) > dif(A,temp(T,H[i])))
                ans = i;
        }
        System.out.println(ans+1);
    }

    static double temp(double T, double h) {
        return T - h * 0.006;
    }

    static double dif(double T, double A) {
        return Math.abs(A - T);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double T = sc.nextDouble();
        double A = sc.nextDouble();
        double[] H = new double[N];
        for(int i = 0; i < N; i++) H[i] = sc.nextDouble();
        int ans = 0;
        for(int i = 0; i < N; i++) {
            if(dif(A,temp(T,H[ans])) > dif(A,temp(T,H[i])))
                ans = i;
        }
        System.out.println(ans+1);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double T = sc.nextDouble();
        double A = sc.nextDouble();
        double[] H = new double[N];
        for(int i = 0; i < N; i++) H[i] = sc.nextDouble();
        int ans = 0;
        for(int i = 0; i < N; i++) {
            if(dif(A,temp(T,H[ans])) > dif(A,temp(T,H[i])))
                ans = i;
        }
        System.out.println(ans+1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc double T = sc.nextDouble(); T sc.nextDouble() sc.nextDouble sc double A = sc.nextDouble(); A sc.nextDouble() sc.nextDouble sc double[] H = new double[N]; H new double[N] N for(int i = 0; i < N; i++) H[i] = sc.nextDouble(); int i = 0; int i = 0; i 0 i < N i N i++ i++ i H[i] = sc.nextDouble(); H[i] = sc.nextDouble() H[i] H i sc.nextDouble() sc.nextDouble sc int ans = 0; ans 0 for(int i = 0; i < N; i++) {
            if(dif(A,temp(T,H[ans])) > dif(A,temp(T,H[i])))
                ans = i;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if(dif(A,temp(T,H[ans])) > dif(A,temp(T,H[i])))
                ans = i;
        } {
            if(dif(A,temp(T,H[ans])) > dif(A,temp(T,H[i])))
                ans = i;
        } if(dif(A,temp(T,H[ans])) > dif(A,temp(T,H[i])))
                ans = i; dif(A,temp(T,H[ans])) > dif(A,temp(T,H[i])) dif(A,temp(T,H[ans])) dif A temp(T,H[ans]) temp T H[ans] H ans dif(A,temp(T,H[i])) dif A temp(T,H[i]) temp T H[i] H i ans = i ans i System.out.println(ans+1) System.out.println System.out System System.out ans+1 ans 1 String[] args args static double temp(double T, double h) {
        return T - h * 0.006;
    } temp {
        return T - h * 0.006;
    } return T - h * 0.006; T - h * 0.006 T h * 0.006 h 0.006 double T T double h h static double dif(double T, double A) {
        return Math.abs(A - T);
    } dif {
        return Math.abs(A - T);
    } return Math.abs(A - T); Math.abs(A - T) Math.abs Math A - T A T double T T double A A
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double T = sc.nextDouble();
        double A = sc.nextDouble();
        double[] H = new double[N];
        for(int i = 0; i < N; i++) H[i] = sc.nextDouble();
        int ans = 0;
        for(int i = 0; i < N; i++) {
            if(dif(A,temp(T,H[ans])) > dif(A,temp(T,H[i])))
                ans = i;
        }
        System.out.println(ans+1);
    }

    static double temp(double T, double h) {
        return T - h * 0.006;
    }

    static double dif(double T, double A) {
        return Math.abs(A - T);
    }
}