import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int ans = -1;
        int min = 10000000;
        for (int i = 0; i < N; i++) {
            int H = sc.nextInt();
            int diff = Math.abs(T * 1000 - 6 * H - A * 1000);
            if (diff < min) {
                min = diff;
                ans = i + 1;
            }
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int ans = -1;
        int min = 10000000;
        for (int i = 0; i < N; i++) {
            int H = sc.nextInt();
            int diff = Math.abs(T * 1000 - 6 * H - A * 1000);
            if (diff < min) {
                min = diff;
                ans = i + 1;
            }
        }
        System.out.println(ans);
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int ans = -1;
        int min = 10000000;
        for (int i = 0; i < N; i++) {
            int H = sc.nextInt();
            int diff = Math.abs(T * 1000 - 6 * H - A * 1000);
            if (diff < min) {
                min = diff;
                ans = i + 1;
            }
        }
        System.out.println(ans);
    } main {
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int ans = -1;
        int min = 10000000;
        for (int i = 0; i < N; i++) {
            int H = sc.nextInt();
            int diff = Math.abs(T * 1000 - 6 * H - A * 1000);
            if (diff < min) {
                min = diff;
                ans = i + 1;
            }
        }
        System.out.println(ans);
    } 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 ans = -1; ans -1 1 int min = 10000000; min 10000000 for (int i = 0; i < N; i++) {
            int H = sc.nextInt();
            int diff = Math.abs(T * 1000 - 6 * H - A * 1000);
            if (diff < min) {
                min = diff;
                ans = i + 1;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int H = sc.nextInt();
            int diff = Math.abs(T * 1000 - 6 * H - A * 1000);
            if (diff < min) {
                min = diff;
                ans = i + 1;
            }
        } {
            int H = sc.nextInt();
            int diff = Math.abs(T * 1000 - 6 * H - A * 1000);
            if (diff < min) {
                min = diff;
                ans = i + 1;
            }
        } int H = sc.nextInt(); H sc.nextInt() sc.nextInt sc int diff = Math.abs(T * 1000 - 6 * H - A * 1000); diff Math.abs(T * 1000 - 6 * H - A * 1000) Math.abs Math T * 1000 - 6 * H - A * 1000 T * 1000 - 6 * H - A * 1000 T * 1000 T 1000 6 * H 6 H A * 1000 A 1000 if (diff < min) {
                min = diff;
                ans = i + 1;
            } diff < min diff min {
                min = diff;
                ans = i + 1;
            } min = diff min diff ans = i + 1 ans i + 1 i 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int ans = -1;
        int min = 10000000;
        for (int i = 0; i < N; i++) {
            int H = sc.nextInt();
            int diff = Math.abs(T * 1000 - 6 * H - A * 1000);
            if (diff < min) {
                min = diff;
                ans = i + 1;
            }
        }
        System.out.println(ans);
    }
} public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int ans = -1;
        int min = 10000000;
        for (int i = 0; i < N; i++) {
            int H = sc.nextInt();
            int diff = Math.abs(T * 1000 - 6 * H - A * 1000);
            if (diff < min) {
                min = diff;
                ans = i + 1;
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int ans = -1;
        int min = 10000000;
        for (int i = 0; i < N; i++) {
            int H = sc.nextInt();
            int diff = Math.abs(T * 1000 - 6 * H - A * 1000);
            if (diff < min) {
                min = diff;
                ans = i + 1;
            }
        }
        System.out.println(ans);
    }
}
