import java.util.*;

public class Main {

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

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int A = scanner.nextInt();

        double MAX = Double.MAX_VALUE;

        int idx = -1;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();

            double temperature = (double) T - tmp * 0.006;
            double diff = Math.abs(temperature - A);

            if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            }
        }

        System.out.println(idx);
    }
} import java.util.*; util.* java public class Main {

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

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int A = scanner.nextInt();

        double MAX = Double.MAX_VALUE;

        int idx = -1;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();

            double temperature = (double) T - tmp * 0.006;
            double diff = Math.abs(temperature - A);

            if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            }
        }

        System.out.println(idx);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int A = scanner.nextInt();

        double MAX = Double.MAX_VALUE;

        int idx = -1;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();

            double temperature = (double) T - tmp * 0.006;
            double diff = Math.abs(temperature - A);

            if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            }
        }

        System.out.println(idx);
    } main {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int A = scanner.nextInt();

        double MAX = Double.MAX_VALUE;

        int idx = -1;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();

            double temperature = (double) T - tmp * 0.006;
            double diff = Math.abs(temperature - A);

            if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            }
        }

        System.out.println(idx);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int T = scanner.nextInt(); T scanner.nextInt() scanner.nextInt scanner int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner double MAX = Double.MAX_VALUE; MAX Double.MAX_VALUE Double Double.MAX_VALUE int idx = -1; idx -1 1 for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();

            double temperature = (double) T - tmp * 0.006;
            double diff = Math.abs(temperature - A);

            if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            int tmp = scanner.nextInt();

            double temperature = (double) T - tmp * 0.006;
            double diff = Math.abs(temperature - A);

            if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            }
        } {
            int tmp = scanner.nextInt();

            double temperature = (double) T - tmp * 0.006;
            double diff = Math.abs(temperature - A);

            if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            }
        } int tmp = scanner.nextInt(); tmp scanner.nextInt() scanner.nextInt scanner double temperature = (double) T - tmp * 0.006; temperature (double) T - tmp * 0.006 (double) T tmp * 0.006 tmp 0.006 double diff = Math.abs(temperature - A); diff Math.abs(temperature - A) Math.abs Math temperature - A temperature A if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            } diff < MAX diff MAX {
                idx = i + 1;
                MAX = diff;
            } idx = i + 1 idx i + 1 i 1 MAX = diff MAX diff System.out.println(idx) System.out.println System.out System System.out idx String[] args args public class Main {

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

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int A = scanner.nextInt();

        double MAX = Double.MAX_VALUE;

        int idx = -1;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();

            double temperature = (double) T - tmp * 0.006;
            double diff = Math.abs(temperature - A);

            if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            }
        }

        System.out.println(idx);
    }
} public class Main {

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

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int A = scanner.nextInt();

        double MAX = Double.MAX_VALUE;

        int idx = -1;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();

            double temperature = (double) T - tmp * 0.006;
            double diff = Math.abs(temperature - A);

            if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            }
        }

        System.out.println(idx);
    }
} Main
import java.util.*;

public class Main {

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

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int A = scanner.nextInt();

        double MAX = Double.MAX_VALUE;

        int idx = -1;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();

            double temperature = (double) T - tmp * 0.006;
            double diff = Math.abs(temperature - A);

            if(diff < MAX){
                idx = i + 1;
                MAX = diff;
            }
        }

        System.out.println(idx);
    }
}
