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();
        int a = sc.nextInt();
        int[] hArr = new int[n];

        for (int i = 0; i < n; i++) {
            hArr[i] = sc.nextInt();
        }

        double diff = Math.abs((double) a - ((double)t - (double)hArr[0] * 0.006));
        int ans = 1;
        for (int i = 1; i < hArr.length; i++) {
            double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006));
            if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            }
        }

        System.out.println(ans);
    }
} 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();
        int a = sc.nextInt();
        int[] hArr = new int[n];

        for (int i = 0; i < n; i++) {
            hArr[i] = sc.nextInt();
        }

        double diff = Math.abs((double) a - ((double)t - (double)hArr[0] * 0.006));
        int ans = 1;
        for (int i = 1; i < hArr.length; i++) {
            double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006));
            if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            }
        }

        System.out.println(ans);
    }
} 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[] hArr = new int[n];

        for (int i = 0; i < n; i++) {
            hArr[i] = sc.nextInt();
        }

        double diff = Math.abs((double) a - ((double)t - (double)hArr[0] * 0.006));
        int ans = 1;
        for (int i = 1; i < hArr.length; i++) {
            double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006));
            if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            }
        }

        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        int[] hArr = new int[n];

        for (int i = 0; i < n; i++) {
            hArr[i] = sc.nextInt();
        }

        double diff = Math.abs((double) a - ((double)t - (double)hArr[0] * 0.006));
        int ans = 1;
        for (int i = 1; i < hArr.length; i++) {
            double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006));
            if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            }
        }

        System.out.println(ans);
    } 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[] hArr = new int[n]; hArr new int[n] n for (int i = 0; i < n; i++) {
            hArr[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            hArr[i] = sc.nextInt();
        } {
            hArr[i] = sc.nextInt();
        } hArr[i] = sc.nextInt() hArr[i] hArr i sc.nextInt() sc.nextInt sc double diff = Math.abs((double) a - ((double)t - (double)hArr[0] * 0.006)); diff Math.abs((double) a - ((double)t - (double)hArr[0] * 0.006)) Math.abs Math (double) a - ((double)t - (double)hArr[0] * 0.006) (double) a ((double)t - (double)hArr[0] * 0.006) (double)t (double)hArr[0] * 0.006 (double)hArr[0] hArr 0 0.006 int ans = 1; ans 1 for (int i = 1; i < hArr.length; i++) {
            double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006));
            if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            }
        } int i = 1; int i = 1; i 1 i < hArr.length i hArr.length hArr hArr.length i++ i++ i {
            double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006));
            if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            }
        } {
            double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006));
            if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            }
        } double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006)); tmpDiff Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006)) Math.abs Math (double) a - ((double)t - (double)hArr[i] * 0.006) (double) a ((double)t - (double)hArr[i] * 0.006) (double)t (double)hArr[i] * 0.006 (double)hArr[i] hArr i 0.006 if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            } diff > tmpDiff diff tmpDiff {
                diff = tmpDiff;
                ans = i + 1;
            } diff = tmpDiff diff tmpDiff 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 {

    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[] hArr = new int[n];

        for (int i = 0; i < n; i++) {
            hArr[i] = sc.nextInt();
        }

        double diff = Math.abs((double) a - ((double)t - (double)hArr[0] * 0.006));
        int ans = 1;
        for (int i = 1; i < hArr.length; i++) {
            double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006));
            if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            }
        }

        System.out.println(ans);
    }
} 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[] hArr = new int[n];

        for (int i = 0; i < n; i++) {
            hArr[i] = sc.nextInt();
        }

        double diff = Math.abs((double) a - ((double)t - (double)hArr[0] * 0.006));
        int ans = 1;
        for (int i = 1; i < hArr.length; i++) {
            double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006));
            if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            }
        }

        System.out.println(ans);
    }
} 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();
        int a = sc.nextInt();
        int[] hArr = new int[n];

        for (int i = 0; i < n; i++) {
            hArr[i] = sc.nextInt();
        }

        double diff = Math.abs((double) a - ((double)t - (double)hArr[0] * 0.006));
        int ans = 1;
        for (int i = 1; i < hArr.length; i++) {
            double tmpDiff = Math.abs((double) a - ((double)t - (double)hArr[i] * 0.006));
            if (diff > tmpDiff) {
                diff = tmpDiff;
                ans = i + 1;
            }
        }

        System.out.println(ans);
    }
}
