import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double N=sc.nextInt();
        double T=sc.nextInt();
        double A=sc.nextInt();
        int opt_h=1;
        double H=sc.nextInt();
        double t = T-H*0.006;
        double opt = Math.abs(A-t);

        for(int a=1;a<N;a++){
             H=sc.nextInt();
            t = T-H*0.006;
            double h = Math.abs(A-t);
            if(h<=opt){
                opt=h;
                opt_h=a+1;
            }
        }
        System.out.println(opt_h);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double N=sc.nextInt();
        double T=sc.nextInt();
        double A=sc.nextInt();
        int opt_h=1;
        double H=sc.nextInt();
        double t = T-H*0.006;
        double opt = Math.abs(A-t);

        for(int a=1;a<N;a++){
             H=sc.nextInt();
            t = T-H*0.006;
            double h = Math.abs(A-t);
            if(h<=opt){
                opt=h;
                opt_h=a+1;
            }
        }
        System.out.println(opt_h);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double N=sc.nextInt();
        double T=sc.nextInt();
        double A=sc.nextInt();
        int opt_h=1;
        double H=sc.nextInt();
        double t = T-H*0.006;
        double opt = Math.abs(A-t);

        for(int a=1;a<N;a++){
             H=sc.nextInt();
            t = T-H*0.006;
            double h = Math.abs(A-t);
            if(h<=opt){
                opt=h;
                opt_h=a+1;
            }
        }
        System.out.println(opt_h);
    } main {
        Scanner sc = new Scanner(System.in);
        double N=sc.nextInt();
        double T=sc.nextInt();
        double A=sc.nextInt();
        int opt_h=1;
        double H=sc.nextInt();
        double t = T-H*0.006;
        double opt = Math.abs(A-t);

        for(int a=1;a<N;a++){
             H=sc.nextInt();
            t = T-H*0.006;
            double h = Math.abs(A-t);
            if(h<=opt){
                opt=h;
                opt_h=a+1;
            }
        }
        System.out.println(opt_h);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double N=sc.nextInt(); N sc.nextInt() sc.nextInt sc double T=sc.nextInt(); T sc.nextInt() sc.nextInt sc double A=sc.nextInt(); A sc.nextInt() sc.nextInt sc int opt_h=1; opt_h 1 double H=sc.nextInt(); H sc.nextInt() sc.nextInt sc double t = T-H*0.006; t T-H*0.006 T H*0.006 H 0.006 double opt = Math.abs(A-t); opt Math.abs(A-t) Math.abs Math A-t A t for(int a=1;a<N;a++){
             H=sc.nextInt();
            t = T-H*0.006;
            double h = Math.abs(A-t);
            if(h<=opt){
                opt=h;
                opt_h=a+1;
            }
        } int a=1; int a=1; a 1 a<N a N a++ a++ a {
             H=sc.nextInt();
            t = T-H*0.006;
            double h = Math.abs(A-t);
            if(h<=opt){
                opt=h;
                opt_h=a+1;
            }
        } {
             H=sc.nextInt();
            t = T-H*0.006;
            double h = Math.abs(A-t);
            if(h<=opt){
                opt=h;
                opt_h=a+1;
            }
        } H=sc.nextInt() H sc.nextInt() sc.nextInt sc t = T-H*0.006 t T-H*0.006 T H*0.006 H 0.006 double h = Math.abs(A-t); h Math.abs(A-t) Math.abs Math A-t A t if(h<=opt){
                opt=h;
                opt_h=a+1;
            } h<=opt h opt {
                opt=h;
                opt_h=a+1;
            } opt=h opt h opt_h=a+1 opt_h a+1 a 1 System.out.println(opt_h) System.out.println System.out System System.out opt_h String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double N=sc.nextInt();
        double T=sc.nextInt();
        double A=sc.nextInt();
        int opt_h=1;
        double H=sc.nextInt();
        double t = T-H*0.006;
        double opt = Math.abs(A-t);

        for(int a=1;a<N;a++){
             H=sc.nextInt();
            t = T-H*0.006;
            double h = Math.abs(A-t);
            if(h<=opt){
                opt=h;
                opt_h=a+1;
            }
        }
        System.out.println(opt_h);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double N=sc.nextInt();
        double T=sc.nextInt();
        double A=sc.nextInt();
        int opt_h=1;
        double H=sc.nextInt();
        double t = T-H*0.006;
        double opt = Math.abs(A-t);

        for(int a=1;a<N;a++){
             H=sc.nextInt();
            t = T-H*0.006;
            double h = Math.abs(A-t);
            if(h<=opt){
                opt=h;
                opt_h=a+1;
            }
        }
        System.out.println(opt_h);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double N=sc.nextInt();
        double T=sc.nextInt();
        double A=sc.nextInt();
        int opt_h=1;
        double H=sc.nextInt();
        double t = T-H*0.006;
        double opt = Math.abs(A-t);

        for(int a=1;a<N;a++){
             H=sc.nextInt();
            t = T-H*0.006;
            double h = Math.abs(A-t);
            if(h<=opt){
                opt=h;
                opt_h=a+1;
            }
        }
        System.out.println(opt_h);
    }
}
