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