import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

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();
        List<Integer> list = new ArrayList<>();

        for(int i=0; i < n; i++){
            list.add(sc.nextInt());
        }

        int answer = 0;
        double ondosa = 10000;
        int index = 0;
        for(int hi: list){
            index++;
            double temp = t - hi * 0.006;
            if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            }
        }

        System.out.println(answer);

    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner 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();
        List<Integer> list = new ArrayList<>();

        for(int i=0; i < n; i++){
            list.add(sc.nextInt());
        }

        int answer = 0;
        double ondosa = 10000;
        int index = 0;
        for(int hi: list){
            index++;
            double temp = t - hi * 0.006;
            if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            }
        }

        System.out.println(answer);

    }
} 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();
        List<Integer> list = new ArrayList<>();

        for(int i=0; i < n; i++){
            list.add(sc.nextInt());
        }

        int answer = 0;
        double ondosa = 10000;
        int index = 0;
        for(int hi: list){
            index++;
            double temp = t - hi * 0.006;
            if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            }
        }

        System.out.println(answer);

    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        List<Integer> list = new ArrayList<>();

        for(int i=0; i < n; i++){
            list.add(sc.nextInt());
        }

        int answer = 0;
        double ondosa = 10000;
        int index = 0;
        for(int hi: list){
            index++;
            double temp = t - hi * 0.006;
            if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            }
        }

        System.out.println(answer);

    } 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 List<Integer> list = new ArrayList<>(); list new ArrayList<>() for(int i=0; i < n; i++){
            list.add(sc.nextInt());
        } int i=0; int i=0; i 0 i < n i n i++ i++ i {
            list.add(sc.nextInt());
        } {
            list.add(sc.nextInt());
        } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc int answer = 0; answer 0 double ondosa = 10000; ondosa 10000 int index = 0; index 0 for(int hi: list){
            index++;
            double temp = t - hi * 0.006;
            if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            }
        } int hi list {
            index++;
            double temp = t - hi * 0.006;
            if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            }
        } {
            index++;
            double temp = t - hi * 0.006;
            if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            }
        } index++ index double temp = t - hi * 0.006; temp t - hi * 0.006 t hi * 0.006 hi 0.006 if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            } Math.abs(temp - a) < ondosa Math.abs(temp - a) Math.abs Math temp - a temp a ondosa {
                ondosa = Math.abs(temp - a);
                answer = index;
            } ondosa = Math.abs(temp - a) ondosa Math.abs(temp - a) Math.abs Math temp - a temp a answer = index answer index System.out.println(answer) System.out.println System.out System System.out answer 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();
        List<Integer> list = new ArrayList<>();

        for(int i=0; i < n; i++){
            list.add(sc.nextInt());
        }

        int answer = 0;
        double ondosa = 10000;
        int index = 0;
        for(int hi: list){
            index++;
            double temp = t - hi * 0.006;
            if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            }
        }

        System.out.println(answer);

    }
} 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();
        List<Integer> list = new ArrayList<>();

        for(int i=0; i < n; i++){
            list.add(sc.nextInt());
        }

        int answer = 0;
        double ondosa = 10000;
        int index = 0;
        for(int hi: list){
            index++;
            double temp = t - hi * 0.006;
            if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            }
        }

        System.out.println(answer);

    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

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();
        List<Integer> list = new ArrayList<>();

        for(int i=0; i < n; i++){
            list.add(sc.nextInt());
        }

        int answer = 0;
        double ondosa = 10000;
        int index = 0;
        for(int hi: list){
            index++;
            double temp = t - hi * 0.006;
            if (Math.abs(temp - a) < ondosa){
                ondosa = Math.abs(temp - a);
                answer = index;
            }
        }

        System.out.println(answer);

    }
}
