import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author hakamada
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC113_2 solver = new ABC113_2();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC113_2 {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int N = in.nextInt();
            int T = in.nextInt();
            int A = in.nextInt();
            int ANS = 0;
            int diff_from_a = 2147483647;

            int evaluated[] = new int[N];


            for (int i = 0; i < N; i++) {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            }
        /*
        for (int i = 0; i < evaluated.length; i++) {
            if (evaluated[i] < A) {
                if (Math.abs(diff_from_a) >  Math.abs((A*1000) - evaluated[i])) {
                    diff_from_a = (int) Math.abs((A*1000) - evaluated[i]);
                    ANS = i + 1;
                }
            } else {
                // evaluated[i] >= A
                if (Math.abs(diff_from_a) >  Math.abs(evaluated[i]-(A*1000))) {
                    diff_from_a = (int) Math.abs(evaluated[i]-(A*1000));
                    ANS = i + 1;
                }
            }
        }
        */
/*
            if (A > 0)  {
                if (Math.abs(diff_from_a) > (int) Math.abs(A-WK)) {
                    diff_from_a = (int) Math.abs(A-WK);
                    ANS = i + 1;
                }
            } else {
                if (Math.abs(diff_from_a) > (int) Math.abs(A + WK)) {
                    diff_from_a = (int) Math.abs(A + WK);
                    ANS = i + 1;
                }
            }
*/
            /*
            if (diff_from_a < 0) {
                if (diff_from_a > WK) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            } else {
                if (diff_from_a > (int) (A-(T - H * 0.006))) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            }
            */
            //}
            out.println(ANS);
        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC113_2 solver = new ABC113_2();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC113_2 {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int N = in.nextInt();
            int T = in.nextInt();
            int A = in.nextInt();
            int ANS = 0;
            int diff_from_a = 2147483647;

            int evaluated[] = new int[N];


            for (int i = 0; i < N; i++) {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            }
        /*
        for (int i = 0; i < evaluated.length; i++) {
            if (evaluated[i] < A) {
                if (Math.abs(diff_from_a) >  Math.abs((A*1000) - evaluated[i])) {
                    diff_from_a = (int) Math.abs((A*1000) - evaluated[i]);
                    ANS = i + 1;
                }
            } else {
                // evaluated[i] >= A
                if (Math.abs(diff_from_a) >  Math.abs(evaluated[i]-(A*1000))) {
                    diff_from_a = (int) Math.abs(evaluated[i]-(A*1000));
                    ANS = i + 1;
                }
            }
        }
        */
/*
            if (A > 0)  {
                if (Math.abs(diff_from_a) > (int) Math.abs(A-WK)) {
                    diff_from_a = (int) Math.abs(A-WK);
                    ANS = i + 1;
                }
            } else {
                if (Math.abs(diff_from_a) > (int) Math.abs(A + WK)) {
                    diff_from_a = (int) Math.abs(A + WK);
                    ANS = i + 1;
                }
            }
*/
            /*
            if (diff_from_a < 0) {
                if (diff_from_a > WK) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            } else {
                if (diff_from_a > (int) (A-(T - H * 0.006))) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            }
            */
            //}
            out.println(ANS);
        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC113_2 solver = new ABC113_2();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC113_2 solver = new ABC113_2();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) ABC113_2 solver = new ABC113_2(); solver new ABC113_2() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class ABC113_2 {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int N = in.nextInt();
            int T = in.nextInt();
            int A = in.nextInt();
            int ANS = 0;
            int diff_from_a = 2147483647;

            int evaluated[] = new int[N];


            for (int i = 0; i < N; i++) {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            }
        /*
        for (int i = 0; i < evaluated.length; i++) {
            if (evaluated[i] < A) {
                if (Math.abs(diff_from_a) >  Math.abs((A*1000) - evaluated[i])) {
                    diff_from_a = (int) Math.abs((A*1000) - evaluated[i]);
                    ANS = i + 1;
                }
            } else {
                // evaluated[i] >= A
                if (Math.abs(diff_from_a) >  Math.abs(evaluated[i]-(A*1000))) {
                    diff_from_a = (int) Math.abs(evaluated[i]-(A*1000));
                    ANS = i + 1;
                }
            }
        }
        */
/*
            if (A > 0)  {
                if (Math.abs(diff_from_a) > (int) Math.abs(A-WK)) {
                    diff_from_a = (int) Math.abs(A-WK);
                    ANS = i + 1;
                }
            } else {
                if (Math.abs(diff_from_a) > (int) Math.abs(A + WK)) {
                    diff_from_a = (int) Math.abs(A + WK);
                    ANS = i + 1;
                }
            }
*/
            /*
            if (diff_from_a < 0) {
                if (diff_from_a > WK) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            } else {
                if (diff_from_a > (int) (A-(T - H * 0.006))) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            }
            */
            //}
            out.println(ANS);
        }

    } ABC113_2 public void solve(int testNumber, Scanner in, PrintWriter out) {
            int N = in.nextInt();
            int T = in.nextInt();
            int A = in.nextInt();
            int ANS = 0;
            int diff_from_a = 2147483647;

            int evaluated[] = new int[N];


            for (int i = 0; i < N; i++) {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            }
        /*
        for (int i = 0; i < evaluated.length; i++) {
            if (evaluated[i] < A) {
                if (Math.abs(diff_from_a) >  Math.abs((A*1000) - evaluated[i])) {
                    diff_from_a = (int) Math.abs((A*1000) - evaluated[i]);
                    ANS = i + 1;
                }
            } else {
                // evaluated[i] >= A
                if (Math.abs(diff_from_a) >  Math.abs(evaluated[i]-(A*1000))) {
                    diff_from_a = (int) Math.abs(evaluated[i]-(A*1000));
                    ANS = i + 1;
                }
            }
        }
        */
/*
            if (A > 0)  {
                if (Math.abs(diff_from_a) > (int) Math.abs(A-WK)) {
                    diff_from_a = (int) Math.abs(A-WK);
                    ANS = i + 1;
                }
            } else {
                if (Math.abs(diff_from_a) > (int) Math.abs(A + WK)) {
                    diff_from_a = (int) Math.abs(A + WK);
                    ANS = i + 1;
                }
            }
*/
            /*
            if (diff_from_a < 0) {
                if (diff_from_a > WK) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            } else {
                if (diff_from_a > (int) (A-(T - H * 0.006))) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            }
            */
            //}
            out.println(ANS);
        } solve {
            int N = in.nextInt();
            int T = in.nextInt();
            int A = in.nextInt();
            int ANS = 0;
            int diff_from_a = 2147483647;

            int evaluated[] = new int[N];


            for (int i = 0; i < N; i++) {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            }
        /*
        for (int i = 0; i < evaluated.length; i++) {
            if (evaluated[i] < A) {
                if (Math.abs(diff_from_a) >  Math.abs((A*1000) - evaluated[i])) {
                    diff_from_a = (int) Math.abs((A*1000) - evaluated[i]);
                    ANS = i + 1;
                }
            } else {
                // evaluated[i] >= A
                if (Math.abs(diff_from_a) >  Math.abs(evaluated[i]-(A*1000))) {
                    diff_from_a = (int) Math.abs(evaluated[i]-(A*1000));
                    ANS = i + 1;
                }
            }
        }
        */
/*
            if (A > 0)  {
                if (Math.abs(diff_from_a) > (int) Math.abs(A-WK)) {
                    diff_from_a = (int) Math.abs(A-WK);
                    ANS = i + 1;
                }
            } else {
                if (Math.abs(diff_from_a) > (int) Math.abs(A + WK)) {
                    diff_from_a = (int) Math.abs(A + WK);
                    ANS = i + 1;
                }
            }
*/
            /*
            if (diff_from_a < 0) {
                if (diff_from_a > WK) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            } else {
                if (diff_from_a > (int) (A-(T - H * 0.006))) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            }
            */
            //}
            out.println(ANS);
        } int N = in.nextInt(); N in.nextInt() in.nextInt in int T = in.nextInt(); T in.nextInt() in.nextInt in int A = in.nextInt(); A in.nextInt() in.nextInt in int ANS = 0; ANS 0 int diff_from_a = 2147483647; diff_from_a 2147483647 int evaluated[] = new int[N]; evaluated new int[N] N for (int i = 0; i < N; i++) {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            } {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            } int H = in.nextInt(); H in.nextInt() in.nextInt in int WK = (int) ((T * 1000) - H * 6); WK (int) ((T * 1000) - H * 6) (T * 1000) T 1000 H * 6 H 6 int cc = Math.abs(WK - (A * 1000)); cc Math.abs(WK - (A * 1000)) Math.abs Math WK - (A * 1000) WK (A * 1000) A 1000 if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                } diff_from_a > cc diff_from_a cc {
                    diff_from_a = cc;
                    ANS = i + 1;
                } diff_from_a = cc diff_from_a cc ANS = i + 1 ANS i + 1 i 1 out.println(ANS) out.println out ANS int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC113_2 solver = new ABC113_2();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC113_2 {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int N = in.nextInt();
            int T = in.nextInt();
            int A = in.nextInt();
            int ANS = 0;
            int diff_from_a = 2147483647;

            int evaluated[] = new int[N];


            for (int i = 0; i < N; i++) {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            }
        /*
        for (int i = 0; i < evaluated.length; i++) {
            if (evaluated[i] < A) {
                if (Math.abs(diff_from_a) >  Math.abs((A*1000) - evaluated[i])) {
                    diff_from_a = (int) Math.abs((A*1000) - evaluated[i]);
                    ANS = i + 1;
                }
            } else {
                // evaluated[i] >= A
                if (Math.abs(diff_from_a) >  Math.abs(evaluated[i]-(A*1000))) {
                    diff_from_a = (int) Math.abs(evaluated[i]-(A*1000));
                    ANS = i + 1;
                }
            }
        }
        */
/*
            if (A > 0)  {
                if (Math.abs(diff_from_a) > (int) Math.abs(A-WK)) {
                    diff_from_a = (int) Math.abs(A-WK);
                    ANS = i + 1;
                }
            } else {
                if (Math.abs(diff_from_a) > (int) Math.abs(A + WK)) {
                    diff_from_a = (int) Math.abs(A + WK);
                    ANS = i + 1;
                }
            }
*/
            /*
            if (diff_from_a < 0) {
                if (diff_from_a > WK) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            } else {
                if (diff_from_a > (int) (A-(T - H * 0.006))) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            }
            */
            //}
            out.println(ANS);
        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC113_2 solver = new ABC113_2();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC113_2 {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int N = in.nextInt();
            int T = in.nextInt();
            int A = in.nextInt();
            int ANS = 0;
            int diff_from_a = 2147483647;

            int evaluated[] = new int[N];


            for (int i = 0; i < N; i++) {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            }
        /*
        for (int i = 0; i < evaluated.length; i++) {
            if (evaluated[i] < A) {
                if (Math.abs(diff_from_a) >  Math.abs((A*1000) - evaluated[i])) {
                    diff_from_a = (int) Math.abs((A*1000) - evaluated[i]);
                    ANS = i + 1;
                }
            } else {
                // evaluated[i] >= A
                if (Math.abs(diff_from_a) >  Math.abs(evaluated[i]-(A*1000))) {
                    diff_from_a = (int) Math.abs(evaluated[i]-(A*1000));
                    ANS = i + 1;
                }
            }
        }
        */
/*
            if (A > 0)  {
                if (Math.abs(diff_from_a) > (int) Math.abs(A-WK)) {
                    diff_from_a = (int) Math.abs(A-WK);
                    ANS = i + 1;
                }
            } else {
                if (Math.abs(diff_from_a) > (int) Math.abs(A + WK)) {
                    diff_from_a = (int) Math.abs(A + WK);
                    ANS = i + 1;
                }
            }
*/
            /*
            if (diff_from_a < 0) {
                if (diff_from_a > WK) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            } else {
                if (diff_from_a > (int) (A-(T - H * 0.006))) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            }
            */
            //}
            out.println(ANS);
        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author hakamada
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC113_2 solver = new ABC113_2();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC113_2 {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int N = in.nextInt();
            int T = in.nextInt();
            int A = in.nextInt();
            int ANS = 0;
            int diff_from_a = 2147483647;

            int evaluated[] = new int[N];


            for (int i = 0; i < N; i++) {
                int H = in.nextInt();
                int WK = (int) ((T * 1000) - H * 6);
                int cc = Math.abs(WK - (A * 1000));
                if (diff_from_a > cc) {
                    diff_from_a = cc;
                    ANS = i + 1;
                }
//            evaluated[i]= WK;
            }
        /*
        for (int i = 0; i < evaluated.length; i++) {
            if (evaluated[i] < A) {
                if (Math.abs(diff_from_a) >  Math.abs((A*1000) - evaluated[i])) {
                    diff_from_a = (int) Math.abs((A*1000) - evaluated[i]);
                    ANS = i + 1;
                }
            } else {
                // evaluated[i] >= A
                if (Math.abs(diff_from_a) >  Math.abs(evaluated[i]-(A*1000))) {
                    diff_from_a = (int) Math.abs(evaluated[i]-(A*1000));
                    ANS = i + 1;
                }
            }
        }
        */
/*
            if (A > 0)  {
                if (Math.abs(diff_from_a) > (int) Math.abs(A-WK)) {
                    diff_from_a = (int) Math.abs(A-WK);
                    ANS = i + 1;
                }
            } else {
                if (Math.abs(diff_from_a) > (int) Math.abs(A + WK)) {
                    diff_from_a = (int) Math.abs(A + WK);
                    ANS = i + 1;
                }
            }
*/
            /*
            if (diff_from_a < 0) {
                if (diff_from_a > WK) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            } else {
                if (diff_from_a > (int) (A-(T - H * 0.006))) {
                    diff_from_a = (int) (A - (T - H * 0.006));
                    ANS = i + 1;
                }
            }
            */
            //}
            out.println(ANS);
        }

    }
}

