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();
        int[] H = new int[N];
        double[] temperatures = new double[N];
        double diffMin = 1000000000;
        int index = 0;

        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        for (int i = 0; i < N; i++) {
            temperatures[i] = T - H[i] * 0.006;
            double diff = Math.abs(A - temperatures[i]);
            if (diff < diffMin) {
                diffMin = diff;
                index = i;
            }
        }

        System.out.println(index + 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();
        int[] H = new int[N];
        double[] temperatures = new double[N];
        double diffMin = 1000000000;
        int index = 0;

        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        for (int i = 0; i < N; i++) {
            temperatures[i] = T - H[i] * 0.006;
            double diff = Math.abs(A - temperatures[i]);
            if (diff < diffMin) {
                diffMin = diff;
                index = i;
            }
        }

        System.out.println(index + 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();
        int[] H = new int[N];
        double[] temperatures = new double[N];
        double diffMin = 1000000000;
        int index = 0;

        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        for (int i = 0; i < N; i++) {
            temperatures[i] = T - H[i] * 0.006;
            double diff = Math.abs(A - temperatures[i]);
            if (diff < diffMin) {
                diffMin = diff;
                index = i;
            }
        }

        System.out.println(index + 1);

    } main {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int[] H = new int[N];
        double[] temperatures = new double[N];
        double diffMin = 1000000000;
        int index = 0;

        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        for (int i = 0; i < N; i++) {
            temperatures[i] = T - H[i] * 0.006;
            double diff = Math.abs(A - temperatures[i]);
            if (diff < diffMin) {
                diffMin = diff;
                index = i;
            }
        }

        System.out.println(index + 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 int[] H = new int[N]; H new int[N] N double[] temperatures = new double[N]; temperatures new double[N] N double diffMin = 1000000000; diffMin 1000000000 int index = 0; index 0 for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            H[i] = sc.nextInt();
        } {
            H[i] = sc.nextInt();
        } H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc for (int i = 0; i < N; i++) {
            temperatures[i] = T - H[i] * 0.006;
            double diff = Math.abs(A - temperatures[i]);
            if (diff < diffMin) {
                diffMin = diff;
                index = i;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            temperatures[i] = T - H[i] * 0.006;
            double diff = Math.abs(A - temperatures[i]);
            if (diff < diffMin) {
                diffMin = diff;
                index = i;
            }
        } {
            temperatures[i] = T - H[i] * 0.006;
            double diff = Math.abs(A - temperatures[i]);
            if (diff < diffMin) {
                diffMin = diff;
                index = i;
            }
        } temperatures[i] = T - H[i] * 0.006 temperatures[i] temperatures i T - H[i] * 0.006 T H[i] * 0.006 H[i] H i 0.006 double diff = Math.abs(A - temperatures[i]); diff Math.abs(A - temperatures[i]) Math.abs Math A - temperatures[i] A temperatures[i] temperatures i if (diff < diffMin) {
                diffMin = diff;
                index = i;
            } diff < diffMin diff diffMin {
                diffMin = diff;
                index = i;
            } diffMin = diff diffMin diff index = i index i System.out.println(index + 1) System.out.println System.out System System.out index + 1 index 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();
        int[] H = new int[N];
        double[] temperatures = new double[N];
        double diffMin = 1000000000;
        int index = 0;

        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        for (int i = 0; i < N; i++) {
            temperatures[i] = T - H[i] * 0.006;
            double diff = Math.abs(A - temperatures[i]);
            if (diff < diffMin) {
                diffMin = diff;
                index = i;
            }
        }

        System.out.println(index + 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();
        int[] H = new int[N];
        double[] temperatures = new double[N];
        double diffMin = 1000000000;
        int index = 0;

        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        for (int i = 0; i < N; i++) {
            temperatures[i] = T - H[i] * 0.006;
            double diff = Math.abs(A - temperatures[i]);
            if (diff < diffMin) {
                diffMin = diff;
                index = i;
            }
        }

        System.out.println(index + 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();
        int[] H = new int[N];
        double[] temperatures = new double[N];
        double diffMin = 1000000000;
        int index = 0;

        for (int i = 0; i < N; i++) {
            H[i] = sc.nextInt();
        }

        for (int i = 0; i < N; i++) {
            temperatures[i] = T - H[i] * 0.006;
            double diff = Math.abs(A - temperatures[i]);
            if (diff < diffMin) {
                diffMin = diff;
                index = i;
            }
        }

        System.out.println(index + 1);

    }

}
