import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = Integer.valueOf(scanner.nextLine());
        String[] temp = scanner.nextLine().split(" ");
        int T = Integer.valueOf(temp[0]);
        int A = Integer.valueOf(temp[1]);

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

        int result = -1;
        double min = 1000000;

        for (int i = 0; i < H.length; i++) {
            double sa = Math.abs(aveTemp(T, H[i]) - A);
            if (min > sa) {
                min = sa;
                result = i;
            }
        }

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

    public static double aveTemp(int T, int x) {
        return (double)T - (double)x * 0.006;
    }

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

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = Integer.valueOf(scanner.nextLine());
        String[] temp = scanner.nextLine().split(" ");
        int T = Integer.valueOf(temp[0]);
        int A = Integer.valueOf(temp[1]);

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

        int result = -1;
        double min = 1000000;

        for (int i = 0; i < H.length; i++) {
            double sa = Math.abs(aveTemp(T, H[i]) - A);
            if (min > sa) {
                min = sa;
                result = i;
            }
        }

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

    public static double aveTemp(int T, int x) {
        return (double)T - (double)x * 0.006;
    }

} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = Integer.valueOf(scanner.nextLine());
        String[] temp = scanner.nextLine().split(" ");
        int T = Integer.valueOf(temp[0]);
        int A = Integer.valueOf(temp[1]);

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

        int result = -1;
        double min = 1000000;

        for (int i = 0; i < H.length; i++) {
            double sa = Math.abs(aveTemp(T, H[i]) - A);
            if (min > sa) {
                min = sa;
                result = i;
            }
        }

        System.out.println(result + 1);
    } main {
        Scanner scanner = new Scanner(System.in);

        int N = Integer.valueOf(scanner.nextLine());
        String[] temp = scanner.nextLine().split(" ");
        int T = Integer.valueOf(temp[0]);
        int A = Integer.valueOf(temp[1]);

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

        int result = -1;
        double min = 1000000;

        for (int i = 0; i < H.length; i++) {
            double sa = Math.abs(aveTemp(T, H[i]) - A);
            if (min > sa) {
                min = sa;
                result = i;
            }
        }

        System.out.println(result + 1);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = Integer.valueOf(scanner.nextLine()); N Integer.valueOf(scanner.nextLine()) Integer.valueOf Integer scanner.nextLine() scanner.nextLine scanner String[] temp = scanner.nextLine().split(" "); temp scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int T = Integer.valueOf(temp[0]); T Integer.valueOf(temp[0]) Integer.valueOf Integer temp[0] temp 0 int A = Integer.valueOf(temp[1]); A Integer.valueOf(temp[1]) Integer.valueOf Integer temp[1] temp 1 int[] H = new int[N]; H new int[N] N for (int i = 0; i < N; i++) {
            H[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            H[i] = scanner.nextInt();
        } {
            H[i] = scanner.nextInt();
        } H[i] = scanner.nextInt() H[i] H i scanner.nextInt() scanner.nextInt scanner int result = -1; result -1 1 double min = 1000000; min 1000000 for (int i = 0; i < H.length; i++) {
            double sa = Math.abs(aveTemp(T, H[i]) - A);
            if (min > sa) {
                min = sa;
                result = i;
            }
        } int i = 0; int i = 0; i 0 i < H.length i H.length H H.length i++ i++ i {
            double sa = Math.abs(aveTemp(T, H[i]) - A);
            if (min > sa) {
                min = sa;
                result = i;
            }
        } {
            double sa = Math.abs(aveTemp(T, H[i]) - A);
            if (min > sa) {
                min = sa;
                result = i;
            }
        } double sa = Math.abs(aveTemp(T, H[i]) - A); sa Math.abs(aveTemp(T, H[i]) - A) Math.abs Math aveTemp(T, H[i]) - A aveTemp(T, H[i]) aveTemp T H[i] H i A if (min > sa) {
                min = sa;
                result = i;
            } min > sa min sa {
                min = sa;
                result = i;
            } min = sa min sa result = i result i System.out.println(result + 1) System.out.println System.out System System.out result + 1 result 1 String[] args args public static double aveTemp(int T, int x) {
        return (double)T - (double)x * 0.006;
    } aveTemp {
        return (double)T - (double)x * 0.006;
    } return (double)T - (double)x * 0.006; (double)T - (double)x * 0.006 (double)T (double)x * 0.006 (double)x 0.006 int T T int x x public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = Integer.valueOf(scanner.nextLine());
        String[] temp = scanner.nextLine().split(" ");
        int T = Integer.valueOf(temp[0]);
        int A = Integer.valueOf(temp[1]);

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

        int result = -1;
        double min = 1000000;

        for (int i = 0; i < H.length; i++) {
            double sa = Math.abs(aveTemp(T, H[i]) - A);
            if (min > sa) {
                min = sa;
                result = i;
            }
        }

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

    public static double aveTemp(int T, int x) {
        return (double)T - (double)x * 0.006;
    }

} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = Integer.valueOf(scanner.nextLine());
        String[] temp = scanner.nextLine().split(" ");
        int T = Integer.valueOf(temp[0]);
        int A = Integer.valueOf(temp[1]);

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

        int result = -1;
        double min = 1000000;

        for (int i = 0; i < H.length; i++) {
            double sa = Math.abs(aveTemp(T, H[i]) - A);
            if (min > sa) {
                min = sa;
                result = i;
            }
        }

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

    public static double aveTemp(int T, int x) {
        return (double)T - (double)x * 0.006;
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = Integer.valueOf(scanner.nextLine());
        String[] temp = scanner.nextLine().split(" ");
        int T = Integer.valueOf(temp[0]);
        int A = Integer.valueOf(temp[1]);

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

        int result = -1;
        double min = 1000000;

        for (int i = 0; i < H.length; i++) {
            double sa = Math.abs(aveTemp(T, H[i]) - A);
            if (min > sa) {
                min = sa;
                result = i;
            }
        }

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

    public static double aveTemp(int T, int x) {
        return (double)T - (double)x * 0.006;
    }

}
