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[] diff = new double[N];
        int minIdx = -1;

        for (int i = 0; i < N; i++) {
            double h = sc.nextDouble();
            double t = T - h * 0.006;
            diff[i] = Math.max(A, t) - Math.min(A, t);
        }

        int Idx = 0;
        double tmpDiff = 1e8;
        for (int i = 0; i < N; i++) {
            if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            }
        }

        System.out.println(Idx + 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[] diff = new double[N];
        int minIdx = -1;

        for (int i = 0; i < N; i++) {
            double h = sc.nextDouble();
            double t = T - h * 0.006;
            diff[i] = Math.max(A, t) - Math.min(A, t);
        }

        int Idx = 0;
        double tmpDiff = 1e8;
        for (int i = 0; i < N; i++) {
            if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            }
        }

        System.out.println(Idx + 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[] diff = new double[N];
        int minIdx = -1;

        for (int i = 0; i < N; i++) {
            double h = sc.nextDouble();
            double t = T - h * 0.006;
            diff[i] = Math.max(A, t) - Math.min(A, t);
        }

        int Idx = 0;
        double tmpDiff = 1e8;
        for (int i = 0; i < N; i++) {
            if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            }
        }

        System.out.println(Idx + 1);
    } main {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double[] diff = new double[N];
        int minIdx = -1;

        for (int i = 0; i < N; i++) {
            double h = sc.nextDouble();
            double t = T - h * 0.006;
            diff[i] = Math.max(A, t) - Math.min(A, t);
        }

        int Idx = 0;
        double tmpDiff = 1e8;
        for (int i = 0; i < N; i++) {
            if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            }
        }

        System.out.println(Idx + 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[] diff = new double[N]; diff new double[N] N int minIdx = -1; minIdx -1 1 for (int i = 0; i < N; i++) {
            double h = sc.nextDouble();
            double t = T - h * 0.006;
            diff[i] = Math.max(A, t) - Math.min(A, t);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            double h = sc.nextDouble();
            double t = T - h * 0.006;
            diff[i] = Math.max(A, t) - Math.min(A, t);
        } {
            double h = sc.nextDouble();
            double t = T - h * 0.006;
            diff[i] = Math.max(A, t) - Math.min(A, t);
        } double h = sc.nextDouble(); h sc.nextDouble() sc.nextDouble sc double t = T - h * 0.006; t T - h * 0.006 T h * 0.006 h 0.006 diff[i] = Math.max(A, t) - Math.min(A, t) diff[i] diff i Math.max(A, t) - Math.min(A, t) Math.max(A, t) Math.max Math A t Math.min(A, t) Math.min Math A t int Idx = 0; Idx 0 double tmpDiff = 1e8; tmpDiff 1e8 for (int i = 0; i < N; i++) {
            if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            }
        } {
            if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            }
        } if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            } diff[i] < tmpDiff diff[i] diff i tmpDiff {
                tmpDiff = diff[i];
                Idx = i;
            } tmpDiff = diff[i] tmpDiff diff[i] diff i Idx = i Idx i System.out.println(Idx + 1) System.out.println System.out System System.out Idx + 1 Idx 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[] diff = new double[N];
        int minIdx = -1;

        for (int i = 0; i < N; i++) {
            double h = sc.nextDouble();
            double t = T - h * 0.006;
            diff[i] = Math.max(A, t) - Math.min(A, t);
        }

        int Idx = 0;
        double tmpDiff = 1e8;
        for (int i = 0; i < N; i++) {
            if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            }
        }

        System.out.println(Idx + 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[] diff = new double[N];
        int minIdx = -1;

        for (int i = 0; i < N; i++) {
            double h = sc.nextDouble();
            double t = T - h * 0.006;
            diff[i] = Math.max(A, t) - Math.min(A, t);
        }

        int Idx = 0;
        double tmpDiff = 1e8;
        for (int i = 0; i < N; i++) {
            if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            }
        }

        System.out.println(Idx + 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[] diff = new double[N];
        int minIdx = -1;

        for (int i = 0; i < N; i++) {
            double h = sc.nextDouble();
            double t = T - h * 0.006;
            diff[i] = Math.max(A, t) - Math.min(A, t);
        }

        int Idx = 0;
        double tmpDiff = 1e8;
        for (int i = 0; i < N; i++) {
            if (diff[i] < tmpDiff) {
                tmpDiff = diff[i];
                Idx = i;
            }
        }

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