import java.util.*;

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 = Double.MAX_VALUE;
        int ans = 0;
        for(int i = 1;i <= n;i++){
            double tpr = Math.abs(a-(t - sc.nextInt()*0.006));
            if(min > tpr){
                min = tpr;
                ans = i;
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java 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 = Double.MAX_VALUE;
        int ans = 0;
        for(int i = 1;i <= n;i++){
            double tpr = Math.abs(a-(t - sc.nextInt()*0.006));
            if(min > tpr){
                min = tpr;
                ans = i;
            }
        }
        System.out.println(ans);
    }
} 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 = Double.MAX_VALUE;
        int ans = 0;
        for(int i = 1;i <= n;i++){
            double tpr = Math.abs(a-(t - sc.nextInt()*0.006));
            if(min > tpr){
                min = tpr;
                ans = i;
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        double min = Double.MAX_VALUE;
        int ans = 0;
        for(int i = 1;i <= n;i++){
            double tpr = Math.abs(a-(t - sc.nextInt()*0.006));
            if(min > tpr){
                min = tpr;
                ans = i;
            }
        }
        System.out.println(ans);
    } 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 = Double.MAX_VALUE; min Double.MAX_VALUE Double Double.MAX_VALUE int ans = 0; ans 0 for(int i = 1;i <= n;i++){
            double tpr = Math.abs(a-(t - sc.nextInt()*0.006));
            if(min > tpr){
                min = tpr;
                ans = i;
            }
        } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
            double tpr = Math.abs(a-(t - sc.nextInt()*0.006));
            if(min > tpr){
                min = tpr;
                ans = i;
            }
        } {
            double tpr = Math.abs(a-(t - sc.nextInt()*0.006));
            if(min > tpr){
                min = tpr;
                ans = i;
            }
        } double tpr = Math.abs(a-(t - sc.nextInt()*0.006)); tpr Math.abs(a-(t - sc.nextInt()*0.006)) Math.abs Math a-(t - sc.nextInt()*0.006) a (t - sc.nextInt()*0.006) t sc.nextInt()*0.006 sc.nextInt() sc.nextInt sc 0.006 if(min > tpr){
                min = tpr;
                ans = i;
            } min > tpr min tpr {
                min = tpr;
                ans = i;
            } min = tpr min tpr ans = i ans i System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

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