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 ans = 0;
        double min = Double.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double tmp = (double)t - (double)h[i] * 0.006;
            double diff = Math.abs(a - tmp);
            if (diff < min) {
                ans = i;
                min = diff;
            }
        }

        System.out.println(ans+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();
        int a = sc.nextInt();
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }

        int ans = 0;
        double min = Double.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double tmp = (double)t - (double)h[i] * 0.006;
            double diff = Math.abs(a - tmp);
            if (diff < min) {
                ans = i;
                min = diff;
            }
        }

        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();
        }

        int ans = 0;
        double min = Double.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double tmp = (double)t - (double)h[i] * 0.006;
            double diff = Math.abs(a - tmp);
            if (diff < min) {
                ans = i;
                min = diff;
            }
        }

        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();
        }

        int ans = 0;
        double min = Double.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double tmp = (double)t - (double)h[i] * 0.006;
            double diff = Math.abs(a - tmp);
            if (diff < min) {
                ans = i;
                min = diff;
            }
        }

        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 int ans = 0; ans 0 double min = Double.MAX_VALUE; min Double.MAX_VALUE Double Double.MAX_VALUE for (int i = 0; i < n; i++) {
            double tmp = (double)t - (double)h[i] * 0.006;
            double diff = Math.abs(a - tmp);
            if (diff < min) {
                ans = i;
                min = diff;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            double tmp = (double)t - (double)h[i] * 0.006;
            double diff = Math.abs(a - tmp);
            if (diff < min) {
                ans = i;
                min = diff;
            }
        } {
            double tmp = (double)t - (double)h[i] * 0.006;
            double diff = Math.abs(a - tmp);
            if (diff < min) {
                ans = i;
                min = diff;
            }
        } double tmp = (double)t - (double)h[i] * 0.006; tmp (double)t - (double)h[i] * 0.006 (double)t (double)h[i] * 0.006 (double)h[i] h i 0.006 double diff = Math.abs(a - tmp); diff Math.abs(a - tmp) Math.abs Math a - tmp a tmp if (diff < min) {
                ans = i;
                min = diff;
            } diff < min diff min {
                ans = i;
                min = diff;
            } ans = i ans i min = diff min diff 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();
        }

        int ans = 0;
        double min = Double.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double tmp = (double)t - (double)h[i] * 0.006;
            double diff = Math.abs(a - tmp);
            if (diff < min) {
                ans = i;
                min = diff;
            }
        }

        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();
        }

        int ans = 0;
        double min = Double.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double tmp = (double)t - (double)h[i] * 0.006;
            double diff = Math.abs(a - tmp);
            if (diff < min) {
                ans = i;
                min = diff;
            }
        }

        System.out.println(ans+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();
        int a = sc.nextInt();
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }

        int ans = 0;
        double min = Double.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            double tmp = (double)t - (double)h[i] * 0.006;
            double diff = Math.abs(a - tmp);
            if (diff < min) {
                ans = i;
                min = diff;
            }
        }

        System.out.println(ans+1);
    }
}