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[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        double[] tt = new double[n];
        for (int i = 0; i < n; i++) {
            tt[i] = t - h[i] * 0.006;
        }
        double min = 1000000;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a - tt[i]);
            if (sa < min) {
                min = sa;
                ans = i;
            }
        }
        System.out.println(ans + 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[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        double[] tt = new double[n];
        for (int i = 0; i < n; i++) {
            tt[i] = t - h[i] * 0.006;
        }
        double min = 1000000;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a - tt[i]);
            if (sa < min) {
                min = sa;
                ans = i;
            }
        }
        System.out.println(ans + 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[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        double[] tt = new double[n];
        for (int i = 0; i < n; i++) {
            tt[i] = t - h[i] * 0.006;
        }
        double min = 1000000;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a - tt[i]);
            if (sa < min) {
                min = sa;
                ans = i;
            }
        }
        System.out.println(ans + 1);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        double[] tt = new double[n];
        for (int i = 0; i < n; i++) {
            tt[i] = t - h[i] * 0.006;
        }
        double min = 1000000;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a - tt[i]);
            if (sa < min) {
                min = sa;
                ans = i;
            }
        }
        System.out.println(ans + 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[] 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 double[] tt = new double[n]; tt new double[n] n for (int i = 0; i < n; i++) {
            tt[i] = t - h[i] * 0.006;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            tt[i] = t - h[i] * 0.006;
        } {
            tt[i] = t - h[i] * 0.006;
        } tt[i] = t - h[i] * 0.006 tt[i] tt i t - h[i] * 0.006 t h[i] * 0.006 h[i] h i 0.006 double min = 1000000; min 1000000 int ans = 0; ans 0 for (int i = 0; i < n; i++) {
            double sa = Math.abs(a - tt[i]);
            if (sa < min) {
                min = sa;
                ans = i;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            double sa = Math.abs(a - tt[i]);
            if (sa < min) {
                min = sa;
                ans = i;
            }
        } {
            double sa = Math.abs(a - tt[i]);
            if (sa < min) {
                min = sa;
                ans = i;
            }
        } double sa = Math.abs(a - tt[i]); sa Math.abs(a - tt[i]) Math.abs Math a - tt[i] a tt[i] tt i if (sa < min) {
                min = sa;
                ans = i;
            } sa < min sa min {
                min = sa;
                ans = i;
            } min = sa min sa ans = i ans i System.out.println(ans + 1) System.out.println System.out System System.out ans + 1 ans 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[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        double[] tt = new double[n];
        for (int i = 0; i < n; i++) {
            tt[i] = t - h[i] * 0.006;
        }
        double min = 1000000;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a - tt[i]);
            if (sa < min) {
                min = sa;
                ans = i;
            }
        }
        System.out.println(ans + 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[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        double[] tt = new double[n];
        for (int i = 0; i < n; i++) {
            tt[i] = t - h[i] * 0.006;
        }
        double min = 1000000;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a - tt[i]);
            if (sa < min) {
                min = sa;
                ans = i;
            }
        }
        System.out.println(ans + 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[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        double[] tt = new double[n];
        for (int i = 0; i < n; i++) {
            tt[i] = t - h[i] * 0.006;
        }
        double min = 1000000;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a - tt[i]);
            if (sa < min) {
                min = sa;
                ans = i;
            }
        }
        System.out.println(ans + 1);
    }
}