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 nearest = -1;
        double nearestDiff = 0;

        for (int i = 0; i < N; i++) {
            int h = sc.nextInt();

            double diff = Math.abs(A - (T - h * 0.006));
            if ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            }
        }

        System.out.println(nearest + 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 nearest = -1;
        double nearestDiff = 0;

        for (int i = 0; i < N; i++) {
            int h = sc.nextInt();

            double diff = Math.abs(A - (T - h * 0.006));
            if ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            }
        }

        System.out.println(nearest + 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 nearest = -1;
        double nearestDiff = 0;

        for (int i = 0; i < N; i++) {
            int h = sc.nextInt();

            double diff = Math.abs(A - (T - h * 0.006));
            if ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            }
        }

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

        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();

        int nearest = -1;
        double nearestDiff = 0;

        for (int i = 0; i < N; i++) {
            int h = sc.nextInt();

            double diff = Math.abs(A - (T - h * 0.006));
            if ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            }
        }

        System.out.println(nearest + 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 nearest = -1; nearest -1 1 double nearestDiff = 0; nearestDiff 0 for (int i = 0; i < N; i++) {
            int h = sc.nextInt();

            double diff = Math.abs(A - (T - h * 0.006));
            if ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int h = sc.nextInt();

            double diff = Math.abs(A - (T - h * 0.006));
            if ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            }
        } {
            int h = sc.nextInt();

            double diff = Math.abs(A - (T - h * 0.006));
            if ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            }
        } int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc double diff = Math.abs(A - (T - h * 0.006)); diff 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 ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            } nearest < 0 || diff < nearestDiff nearest < 0 nearest 0 diff < nearestDiff diff nearestDiff {
                nearest = i;
                nearestDiff = diff;
            } nearest = i nearest i nearestDiff = diff nearestDiff diff System.out.println(nearest + 1) System.out.println System.out System System.out nearest + 1 nearest 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 nearest = -1;
        double nearestDiff = 0;

        for (int i = 0; i < N; i++) {
            int h = sc.nextInt();

            double diff = Math.abs(A - (T - h * 0.006));
            if ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            }
        }

        System.out.println(nearest + 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 nearest = -1;
        double nearestDiff = 0;

        for (int i = 0; i < N; i++) {
            int h = sc.nextInt();

            double diff = Math.abs(A - (T - h * 0.006));
            if ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            }
        }

        System.out.println(nearest + 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 nearest = -1;
        double nearestDiff = 0;

        for (int i = 0; i < N; i++) {
            int h = sc.nextInt();

            double diff = Math.abs(A - (T - h * 0.006));
            if ( nearest < 0 || diff < nearestDiff ) {
                nearest = i;
                nearestDiff = diff;
            }
        }

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