import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int point = sc.nextInt();
        int AverageTemp = sc.nextInt();
        int GoodTemp = sc.nextInt();

        Double[] aryPointTemp = new Double[point];
        Map<Double,Integer> map1 = new HashMap<Double, Integer>();

        for(int i=0 ; i < point ; i++){
            aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006)));
            map1.put(aryPointTemp[i],i+1);
        }
        Arrays.sort(aryPointTemp);
        double a = aryPointTemp[0];
        System.out.println(map1.get(a));
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int point = sc.nextInt();
        int AverageTemp = sc.nextInt();
        int GoodTemp = sc.nextInt();

        Double[] aryPointTemp = new Double[point];
        Map<Double,Integer> map1 = new HashMap<Double, Integer>();

        for(int i=0 ; i < point ; i++){
            aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006)));
            map1.put(aryPointTemp[i],i+1);
        }
        Arrays.sort(aryPointTemp);
        double a = aryPointTemp[0];
        System.out.println(map1.get(a));
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int point = sc.nextInt();
        int AverageTemp = sc.nextInt();
        int GoodTemp = sc.nextInt();

        Double[] aryPointTemp = new Double[point];
        Map<Double,Integer> map1 = new HashMap<Double, Integer>();

        for(int i=0 ; i < point ; i++){
            aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006)));
            map1.put(aryPointTemp[i],i+1);
        }
        Arrays.sort(aryPointTemp);
        double a = aryPointTemp[0];
        System.out.println(map1.get(a));
    } main {
        Scanner sc = new Scanner(System.in);

        int point = sc.nextInt();
        int AverageTemp = sc.nextInt();
        int GoodTemp = sc.nextInt();

        Double[] aryPointTemp = new Double[point];
        Map<Double,Integer> map1 = new HashMap<Double, Integer>();

        for(int i=0 ; i < point ; i++){
            aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006)));
            map1.put(aryPointTemp[i],i+1);
        }
        Arrays.sort(aryPointTemp);
        double a = aryPointTemp[0];
        System.out.println(map1.get(a));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int point = sc.nextInt(); point sc.nextInt() sc.nextInt sc int AverageTemp = sc.nextInt(); AverageTemp sc.nextInt() sc.nextInt sc int GoodTemp = sc.nextInt(); GoodTemp sc.nextInt() sc.nextInt sc Double[] aryPointTemp = new Double[point]; aryPointTemp new Double[point] point Map<Double,Integer> map1 = new HashMap<Double, Integer>(); map1 new HashMap<Double, Integer>() for(int i=0 ; i < point ; i++){
            aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006)));
            map1.put(aryPointTemp[i],i+1);
        } int i=0 ; int i=0 ; i 0 i < point i point i++ i++ i {
            aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006)));
            map1.put(aryPointTemp[i],i+1);
        } {
            aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006)));
            map1.put(aryPointTemp[i],i+1);
        } aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006))) aryPointTemp[i] aryPointTemp i Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006))) Math.abs Math GoodTemp - (AverageTemp - (sc.nextInt()*0.006)) GoodTemp (AverageTemp - (sc.nextInt()*0.006)) AverageTemp (sc.nextInt()*0.006) sc.nextInt() sc.nextInt sc 0.006 map1.put(aryPointTemp[i],i+1) map1.put map1 aryPointTemp[i] aryPointTemp i i+1 i 1 Arrays.sort(aryPointTemp) Arrays.sort Arrays aryPointTemp double a = aryPointTemp[0]; a aryPointTemp[0] aryPointTemp 0 System.out.println(map1.get(a)) System.out.println System.out System System.out map1.get(a) map1.get map1 a String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int point = sc.nextInt();
        int AverageTemp = sc.nextInt();
        int GoodTemp = sc.nextInt();

        Double[] aryPointTemp = new Double[point];
        Map<Double,Integer> map1 = new HashMap<Double, Integer>();

        for(int i=0 ; i < point ; i++){
            aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006)));
            map1.put(aryPointTemp[i],i+1);
        }
        Arrays.sort(aryPointTemp);
        double a = aryPointTemp[0];
        System.out.println(map1.get(a));
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int point = sc.nextInt();
        int AverageTemp = sc.nextInt();
        int GoodTemp = sc.nextInt();

        Double[] aryPointTemp = new Double[point];
        Map<Double,Integer> map1 = new HashMap<Double, Integer>();

        for(int i=0 ; i < point ; i++){
            aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006)));
            map1.put(aryPointTemp[i],i+1);
        }
        Arrays.sort(aryPointTemp);
        double a = aryPointTemp[0];
        System.out.println(map1.get(a));
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int point = sc.nextInt();
        int AverageTemp = sc.nextInt();
        int GoodTemp = sc.nextInt();

        Double[] aryPointTemp = new Double[point];
        Map<Double,Integer> map1 = new HashMap<Double, Integer>();

        for(int i=0 ; i < point ; i++){
            aryPointTemp[i] = Math.abs(GoodTemp - (AverageTemp - (sc.nextInt()*0.006)));
            map1.put(aryPointTemp[i],i+1);
        }
        Arrays.sort(aryPointTemp);
        double a = aryPointTemp[0];
        System.out.println(map1.get(a));
    }
}