import java.util.*;
import static java.lang.Math.*;

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();
        double min = Integer.MAX_VALUE;
        int min_num = Integer.MAX_VALUE;
        for(int i=0; i<n; i++){
            int h = sc.nextInt();
            if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            }
        }
        System.out.println(min_num+1);
    }
} import java.util.*; util.* java import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; 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();
        double min = Integer.MAX_VALUE;
        int min_num = Integer.MAX_VALUE;
        for(int i=0; i<n; i++){
            int h = sc.nextInt();
            if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            }
        }
        System.out.println(min_num+1);
    }
} 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();
        double min = Integer.MAX_VALUE;
        int min_num = Integer.MAX_VALUE;
        for(int i=0; i<n; i++){
            int h = sc.nextInt();
            if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            }
        }
        System.out.println(min_num+1);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        double min = Integer.MAX_VALUE;
        int min_num = Integer.MAX_VALUE;
        for(int i=0; i<n; i++){
            int h = sc.nextInt();
            if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            }
        }
        System.out.println(min_num+1);
    } 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 double min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE int min_num = Integer.MAX_VALUE; min_num Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i=0; i<n; i++){
            int h = sc.nextInt();
            if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int h = sc.nextInt();
            if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            }
        } {
            int h = sc.nextInt();
            if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            }
        } int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            } min > min(min, abs(a-(t-h*0.006))) min min(min, abs(a-(t-h*0.006))) min min abs(a-(t-h*0.006)) abs a-(t-h*0.006) a (t-h*0.006) t h*0.006 h 0.006 {
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            } min = min(min, abs(a-(t-h*0.006))) min min(min, abs(a-(t-h*0.006))) min min abs(a-(t-h*0.006)) abs a-(t-h*0.006) a (t-h*0.006) t h*0.006 h 0.006 min_num = i min_num i System.out.println(min_num+1) System.out.println System.out System System.out min_num+1 min_num 1 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();
        double min = Integer.MAX_VALUE;
        int min_num = Integer.MAX_VALUE;
        for(int i=0; i<n; i++){
            int h = sc.nextInt();
            if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            }
        }
        System.out.println(min_num+1);
    }
} 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();
        double min = Integer.MAX_VALUE;
        int min_num = Integer.MAX_VALUE;
        for(int i=0; i<n; i++){
            int h = sc.nextInt();
            if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            }
        }
        System.out.println(min_num+1);
    }
} Main
import java.util.*;
import static java.lang.Math.*;

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();
        double min = Integer.MAX_VALUE;
        int min_num = Integer.MAX_VALUE;
        for(int i=0; i<n; i++){
            int h = sc.nextInt();
            if(min > min(min, abs(a-(t-h*0.006)))){
                min = min(min, abs(a-(t-h*0.006)));
                min_num = i;
            }
        }
        System.out.println(min_num+1);
    }
}