import java.util.*;

class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t =sc.nextDouble(),a=sc.nextDouble();
        double[] h = new double[n];
        int ans = 0;
        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            if(Math.abs(a-(t-h[i]*6/1000))<Math.abs(a-(t-h[ans]*6/1000))){
                ans = i;
            }
        }
        System.out.println(ans+1);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t =sc.nextDouble(),a=sc.nextDouble();
        double[] h = new double[n];
        int ans = 0;
        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            if(Math.abs(a-(t-h[i]*6/1000))<Math.abs(a-(t-h[ans]*6/1000))){
                ans = i;
            }
        }
        System.out.println(ans+1);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t =sc.nextDouble(),a=sc.nextDouble();
        double[] h = new double[n];
        int ans = 0;
        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            if(Math.abs(a-(t-h[i]*6/1000))<Math.abs(a-(t-h[ans]*6/1000))){
                ans = i;
            }
        }
        System.out.println(ans+1);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t =sc.nextDouble(),a=sc.nextDouble();
        double[] h = new double[n];
        int ans = 0;
        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            if(Math.abs(a-(t-h[i]*6/1000))<Math.abs(a-(t-h[ans]*6/1000))){
                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 double t =sc.nextDouble() t sc.nextDouble() sc.nextDouble sc a=sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc double[] h = new double[n]; h new double[n] n int ans = 0; ans 0 for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            if(Math.abs(a-(t-h[i]*6/1000))<Math.abs(a-(t-h[ans]*6/1000))){
                ans = i;
            }
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            h[i] = sc.nextDouble();
            if(Math.abs(a-(t-h[i]*6/1000))<Math.abs(a-(t-h[ans]*6/1000))){
                ans = i;
            }
        } {
            h[i] = sc.nextDouble();
            if(Math.abs(a-(t-h[i]*6/1000))<Math.abs(a-(t-h[ans]*6/1000))){
                ans = i;
            }
        } h[i] = sc.nextDouble() h[i] h i sc.nextDouble() sc.nextDouble sc if(Math.abs(a-(t-h[i]*6/1000))<Math.abs(a-(t-h[ans]*6/1000))){
                ans = i;
            } Math.abs(a-(t-h[i]*6/1000))<Math.abs(a-(t-h[ans]*6/1000)) Math.abs(a-(t-h[i]*6/1000)) Math.abs Math a-(t-h[i]*6/1000) a (t-h[i]*6/1000) t h[i]*6/1000 h[i]*6 h[i] h i 6 1000 Math.abs(a-(t-h[ans]*6/1000)) Math.abs Math a-(t-h[ans]*6/1000) a (t-h[ans]*6/1000) t h[ans]*6/1000 h[ans]*6 h[ans] h ans 6 1000 {
                ans = i;
            } ans = i ans i System.out.println(ans+1) System.out.println System.out System System.out ans+1 ans 1 String[] args args
import java.util.*;

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