import java.util.Scanner;

class Main{
    static Scanner scan=new Scanner(System.in);
    public static void main(String args[]){
        int n;
        double t,a;

        n=scan.nextInt();
        t=scan.nextDouble();
        a=scan.nextDouble();
        double h[]=new double[n];
        for(int i=0;i<n;i++){
            h[i]=scan.nextDouble();
        }
        double min=99999999.0;
        double x;
        int ans=0;
        for(int i=0;i<n;i++){
            x=t-h[i]*0.006;
            if(Math.abs(x-a)<min){
                min=Math.abs(x-a);
                ans=i+1;
            }
        }
        System.out.println(ans);

    }   
} import java.util.Scanner; Scanner java.util class Main{
    static Scanner scan=new Scanner(System.in);
    public static void main(String args[]){
        int n;
        double t,a;

        n=scan.nextInt();
        t=scan.nextDouble();
        a=scan.nextDouble();
        double h[]=new double[n];
        for(int i=0;i<n;i++){
            h[i]=scan.nextDouble();
        }
        double min=99999999.0;
        double x;
        int ans=0;
        for(int i=0;i<n;i++){
            x=t-h[i]*0.006;
            if(Math.abs(x-a)<min){
                min=Math.abs(x-a);
                ans=i+1;
            }
        }
        System.out.println(ans);

    }   
} Main static Scanner scan=new Scanner(System.in); scan new Scanner(System.in) public static void main(String args[]){
        int n;
        double t,a;

        n=scan.nextInt();
        t=scan.nextDouble();
        a=scan.nextDouble();
        double h[]=new double[n];
        for(int i=0;i<n;i++){
            h[i]=scan.nextDouble();
        }
        double min=99999999.0;
        double x;
        int ans=0;
        for(int i=0;i<n;i++){
            x=t-h[i]*0.006;
            if(Math.abs(x-a)<min){
                min=Math.abs(x-a);
                ans=i+1;
            }
        }
        System.out.println(ans);

    } main {
        int n;
        double t,a;

        n=scan.nextInt();
        t=scan.nextDouble();
        a=scan.nextDouble();
        double h[]=new double[n];
        for(int i=0;i<n;i++){
            h[i]=scan.nextDouble();
        }
        double min=99999999.0;
        double x;
        int ans=0;
        for(int i=0;i<n;i++){
            x=t-h[i]*0.006;
            if(Math.abs(x-a)<min){
                min=Math.abs(x-a);
                ans=i+1;
            }
        }
        System.out.println(ans);

    } int n; n double t t a; a n=scan.nextInt() n scan.nextInt() scan.nextInt scan t=scan.nextDouble() t scan.nextDouble() scan.nextDouble scan a=scan.nextDouble() a scan.nextDouble() scan.nextDouble scan double h[]=new double[n]; h new double[n] n for(int i=0;i<n;i++){
            h[i]=scan.nextDouble();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            h[i]=scan.nextDouble();
        } {
            h[i]=scan.nextDouble();
        } h[i]=scan.nextDouble() h[i] h i scan.nextDouble() scan.nextDouble scan double min=99999999.0; min 99999999.0 double x; x int ans=0; ans 0 for(int i=0;i<n;i++){
            x=t-h[i]*0.006;
            if(Math.abs(x-a)<min){
                min=Math.abs(x-a);
                ans=i+1;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            x=t-h[i]*0.006;
            if(Math.abs(x-a)<min){
                min=Math.abs(x-a);
                ans=i+1;
            }
        } {
            x=t-h[i]*0.006;
            if(Math.abs(x-a)<min){
                min=Math.abs(x-a);
                ans=i+1;
            }
        } x=t-h[i]*0.006 x t-h[i]*0.006 t h[i]*0.006 h[i] h i 0.006 if(Math.abs(x-a)<min){
                min=Math.abs(x-a);
                ans=i+1;
            } Math.abs(x-a)<min Math.abs(x-a) Math.abs Math x-a x a min {
                min=Math.abs(x-a);
                ans=i+1;
            } min=Math.abs(x-a) min Math.abs(x-a) Math.abs Math x-a x a ans=i+1 ans i+1 i 1 System.out.println(ans) System.out.println System.out System System.out ans String args[] args
import java.util.Scanner;

class Main{
    static Scanner scan=new Scanner(System.in);
    public static void main(String args[]){
        int n;
        double t,a;

        n=scan.nextInt();
        t=scan.nextDouble();
        a=scan.nextDouble();
        double h[]=new double[n];
        for(int i=0;i<n;i++){
            h[i]=scan.nextDouble();
        }
        double min=99999999.0;
        double x;
        int ans=0;
        for(int i=0;i<n;i++){
            x=t-h[i]*0.006;
            if(Math.abs(x-a)<min){
                min=Math.abs(x-a);
                ans=i+1;
            }
        }
        System.out.println(ans);

    }   
}