import java.io.*;
import java.util.*;

class Program{
    String S[]; int N,T,A;
    void solve(String S[], int N, int T, int A){
        this.S = S; this.N = N; this.T = T; this.A = A;
        calc();
    }
    void calc(){
        double avg, diff = Double.MAX_VALUE; int temp = -1;
        for(int i=0;i<S.length;i++){
            avg = T - Integer.parseInt(S[i])*0.006;
            //System.out.println(avg);
            if(Math.abs(A-avg)<=diff){
                diff = Math.abs(A-avg);
                //System.out.println("SD"+diff);
                temp = i+1;
            }
        }
        System.out.println(temp);
    }
}
class Main{
    public static void main(String[] args) {
        Program obj = new Program();
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        int T = in.nextInt(); int A = in.nextInt();
        in.nextLine();
        String S[]= in.nextLine().split(" ");
        //System.out.println(N+" "+T+" "+A+" "+Arrays.toString(S));
        obj.solve(S,N,T,A);
    }
} import java.io.*; io.* java import java.util.*; util.* java class Program{
    String S[]; int N,T,A;
    void solve(String S[], int N, int T, int A){
        this.S = S; this.N = N; this.T = T; this.A = A;
        calc();
    }
    void calc(){
        double avg, diff = Double.MAX_VALUE; int temp = -1;
        for(int i=0;i<S.length;i++){
            avg = T - Integer.parseInt(S[i])*0.006;
            //System.out.println(avg);
            if(Math.abs(A-avg)<=diff){
                diff = Math.abs(A-avg);
                //System.out.println("SD"+diff);
                temp = i+1;
            }
        }
        System.out.println(temp);
    }
} Program String S[]; S int N N T T A; A void solve(String S[], int N, int T, int A){
        this.S = S; this.N = N; this.T = T; this.A = A;
        calc();
    } solve {
        this.S = S; this.N = N; this.T = T; this.A = A;
        calc();
    } this.S = S this.S this this.S S this.N = N this.N this this.N N this.T = T this.T this this.T T this.A = A this.A this this.A A calc() calc String S[] S int N N int T T int A A void calc(){
        double avg, diff = Double.MAX_VALUE; int temp = -1;
        for(int i=0;i<S.length;i++){
            avg = T - Integer.parseInt(S[i])*0.006;
            //System.out.println(avg);
            if(Math.abs(A-avg)<=diff){
                diff = Math.abs(A-avg);
                //System.out.println("SD"+diff);
                temp = i+1;
            }
        }
        System.out.println(temp);
    } calc {
        double avg, diff = Double.MAX_VALUE; int temp = -1;
        for(int i=0;i<S.length;i++){
            avg = T - Integer.parseInt(S[i])*0.006;
            //System.out.println(avg);
            if(Math.abs(A-avg)<=diff){
                diff = Math.abs(A-avg);
                //System.out.println("SD"+diff);
                temp = i+1;
            }
        }
        System.out.println(temp);
    } double avg avg diff = Double.MAX_VALUE; diff Double.MAX_VALUE Double Double.MAX_VALUE int temp = -1; temp -1 1 for(int i=0;i<S.length;i++){
            avg = T - Integer.parseInt(S[i])*0.006;
            //System.out.println(avg);
            if(Math.abs(A-avg)<=diff){
                diff = Math.abs(A-avg);
                //System.out.println("SD"+diff);
                temp = i+1;
            }
        } int i=0; int i=0; i 0 i<S.length i S.length S S.length i++ i++ i {
            avg = T - Integer.parseInt(S[i])*0.006;
            //System.out.println(avg);
            if(Math.abs(A-avg)<=diff){
                diff = Math.abs(A-avg);
                //System.out.println("SD"+diff);
                temp = i+1;
            }
        } {
            avg = T - Integer.parseInt(S[i])*0.006;
            //System.out.println(avg);
            if(Math.abs(A-avg)<=diff){
                diff = Math.abs(A-avg);
                //System.out.println("SD"+diff);
                temp = i+1;
            }
        } avg = T - Integer.parseInt(S[i])*0.006 avg T - Integer.parseInt(S[i])*0.006 T Integer.parseInt(S[i])*0.006 Integer.parseInt(S[i]) Integer.parseInt Integer S[i] S i 0.006 if(Math.abs(A-avg)<=diff){
                diff = Math.abs(A-avg);
                //System.out.println("SD"+diff);
                temp = i+1;
            } Math.abs(A-avg)<=diff Math.abs(A-avg) Math.abs Math A-avg A avg diff {
                diff = Math.abs(A-avg);
                //System.out.println("SD"+diff);
                temp = i+1;
            } diff = Math.abs(A-avg) diff Math.abs(A-avg) Math.abs Math A-avg A avg temp = i+1 temp i+1 i 1 System.out.println(temp) System.out.println System.out System System.out temp class Main{
    public static void main(String[] args) {
        Program obj = new Program();
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        int T = in.nextInt(); int A = in.nextInt();
        in.nextLine();
        String S[]= in.nextLine().split(" ");
        //System.out.println(N+" "+T+" "+A+" "+Arrays.toString(S));
        obj.solve(S,N,T,A);
    }
} Main public static void main(String[] args) {
        Program obj = new Program();
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        int T = in.nextInt(); int A = in.nextInt();
        in.nextLine();
        String S[]= in.nextLine().split(" ");
        //System.out.println(N+" "+T+" "+A+" "+Arrays.toString(S));
        obj.solve(S,N,T,A);
    } main {
        Program obj = new Program();
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        int T = in.nextInt(); int A = in.nextInt();
        in.nextLine();
        String S[]= in.nextLine().split(" ");
        //System.out.println(N+" "+T+" "+A+" "+Arrays.toString(S));
        obj.solve(S,N,T,A);
    } Program obj = new Program(); obj new Program() Scanner in = new Scanner(System.in); in new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in int T = in.nextInt(); T in.nextInt() in.nextInt in int A = in.nextInt(); A in.nextInt() in.nextInt in in.nextLine() in.nextLine in String S[]= in.nextLine().split(" "); S in.nextLine().split(" ") in.nextLine().split in.nextLine() in.nextLine in " " obj.solve(S,N,T,A) obj.solve obj S N T A String[] args args
import java.io.*;
import java.util.*;

class Program{
    String S[]; int N,T,A;
    void solve(String S[], int N, int T, int A){
        this.S = S; this.N = N; this.T = T; this.A = A;
        calc();
    }
    void calc(){
        double avg, diff = Double.MAX_VALUE; int temp = -1;
        for(int i=0;i<S.length;i++){
            avg = T - Integer.parseInt(S[i])*0.006;
            //System.out.println(avg);
            if(Math.abs(A-avg)<=diff){
                diff = Math.abs(A-avg);
                //System.out.println("SD"+diff);
                temp = i+1;
            }
        }
        System.out.println(temp);
    }
}
class Main{
    public static void main(String[] args) {
        Program obj = new Program();
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        int T = in.nextInt(); int A = in.nextInt();
        in.nextLine();
        String S[]= in.nextLine().split(" ");
        //System.out.println(N+" "+T+" "+A+" "+Arrays.toString(S));
        obj.solve(S,N,T,A);
    }
}
