
import 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() * 1000;
        int a = sc.nextInt() * 1000;
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        int min = -1;
        int idx = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Math.abs(a - (t - h[i] * 6));
            // System.out.println(tmp);
            if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            }
        }
        System.out.println((idx + 1));

    }

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

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt() * 1000;
        int a = sc.nextInt() * 1000;
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        int min = -1;
        int idx = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Math.abs(a - (t - h[i] * 6));
            // System.out.println(tmp);
            if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            }
        }
        System.out.println((idx + 1));

    }

} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt() * 1000;
        int a = sc.nextInt() * 1000;
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        int min = -1;
        int idx = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Math.abs(a - (t - h[i] * 6));
            // System.out.println(tmp);
            if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            }
        }
        System.out.println((idx + 1));

    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt() * 1000;
        int a = sc.nextInt() * 1000;
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        int min = -1;
        int idx = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Math.abs(a - (t - h[i] * 6));
            // System.out.println(tmp);
            if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            }
        }
        System.out.println((idx + 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() * 1000; t sc.nextInt() * 1000 sc.nextInt() sc.nextInt sc 1000 int a = sc.nextInt() * 1000; a sc.nextInt() * 1000 sc.nextInt() sc.nextInt sc 1000 int[] h = new int[n]; h new int[n] n 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 int min = -1; min -1 1 int idx = 0; idx 0 for (int i = 0; i < n; i++) {
            int tmp = Math.abs(a - (t - h[i] * 6));
            // System.out.println(tmp);
            if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int tmp = Math.abs(a - (t - h[i] * 6));
            // System.out.println(tmp);
            if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            }
        } {
            int tmp = Math.abs(a - (t - h[i] * 6));
            // System.out.println(tmp);
            if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            }
        } int tmp = Math.abs(a - (t - h[i] * 6)); tmp Math.abs(a - (t - h[i] * 6)) Math.abs Math a - (t - h[i] * 6) a (t - h[i] * 6) t h[i] * 6 h[i] h i 6 if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            } i == 0 i 0 {
                min = tmp;
                idx = 0;
            } min = tmp min tmp idx = 0 idx 0 {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            } if (min > tmp) {
                    min = tmp;
                    idx = i;
                } min > tmp min tmp {
                    min = tmp;
                    idx = i;
                } min = tmp min tmp idx = i idx i System.out.println((idx + 1)) System.out.println System.out System System.out (idx + 1) idx 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() * 1000;
        int a = sc.nextInt() * 1000;
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        int min = -1;
        int idx = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Math.abs(a - (t - h[i] * 6));
            // System.out.println(tmp);
            if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            }
        }
        System.out.println((idx + 1));

    }

} public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt() * 1000;
        int a = sc.nextInt() * 1000;
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        int min = -1;
        int idx = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Math.abs(a - (t - h[i] * 6));
            // System.out.println(tmp);
            if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            }
        }
        System.out.println((idx + 1));

    }

} Main

import 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() * 1000;
        int a = sc.nextInt() * 1000;
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        int min = -1;
        int idx = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Math.abs(a - (t - h[i] * 6));
            // System.out.println(tmp);
            if (i == 0) {
                min = tmp;
                idx = 0;
            } else {
                if (min > tmp) {
                    min = tmp;
                    idx = i;
                }
            }
        }
        System.out.println((idx + 1));

    }

}
