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[] h = new int[n];
        for (int i = 0; i < n; i++) h[i] = sc.nextInt();
        int p = 0;
        double dmin = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double d = Math.abs(a - (t - h[i] * 0.006));
            if (dmin > d) {
                dmin = d;
                p = i + 1;
            }
        }
        System.out.println(p);
    }
} 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[] h = new int[n];
        for (int i = 0; i < n; i++) h[i] = sc.nextInt();
        int p = 0;
        double dmin = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double d = Math.abs(a - (t - h[i] * 0.006));
            if (dmin > d) {
                dmin = d;
                p = i + 1;
            }
        }
        System.out.println(p);
    }
} 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();
        int p = 0;
        double dmin = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double d = Math.abs(a - (t - h[i] * 0.006));
            if (dmin > d) {
                dmin = d;
                p = i + 1;
            }
        }
        System.out.println(p);
    } 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();
        int p = 0;
        double dmin = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double d = Math.abs(a - (t - h[i] * 0.006));
            if (dmin > d) {
                dmin = d;
                p = i + 1;
            }
        }
        System.out.println(p);
    } 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] h i sc.nextInt() sc.nextInt sc int p = 0; p 0 double dmin = Integer.MAX_VALUE; dmin Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
            double d = Math.abs(a - (t - h[i] * 0.006));
            if (dmin > d) {
                dmin = d;
                p = i + 1;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            double d = Math.abs(a - (t - h[i] * 0.006));
            if (dmin > d) {
                dmin = d;
                p = i + 1;
            }
        } {
            double d = Math.abs(a - (t - h[i] * 0.006));
            if (dmin > d) {
                dmin = d;
                p = i + 1;
            }
        } double d = Math.abs(a - (t - h[i] * 0.006)); d Math.abs(a - (t - h[i] * 0.006)) Math.abs Math a - (t - h[i] * 0.006) a (t - h[i] * 0.006) t h[i] * 0.006 h[i] h i 0.006 if (dmin > d) {
                dmin = d;
                p = i + 1;
            } dmin > d dmin d {
                dmin = d;
                p = i + 1;
            } dmin = d dmin d p = i + 1 p i + 1 i 1 System.out.println(p) System.out.println System.out System System.out p 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();
        int p = 0;
        double dmin = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double d = Math.abs(a - (t - h[i] * 0.006));
            if (dmin > d) {
                dmin = d;
                p = i + 1;
            }
        }
        System.out.println(p);
    }
} 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();
        int p = 0;
        double dmin = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double d = Math.abs(a - (t - h[i] * 0.006));
            if (dmin > d) {
                dmin = d;
                p = i + 1;
            }
        }
        System.out.println(p);
    }
} 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[] h = new int[n];
        for (int i = 0; i < n; i++) h[i] = sc.nextInt();
        int p = 0;
        double dmin = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double d = Math.abs(a - (t - h[i] * 0.006));
            if (dmin > d) {
                dmin = d;
                p = i + 1;
            }
        }
        System.out.println(p);
    }
}