import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t = sc.nextDouble();
        double a = sc.nextDouble();
        double[] h = new double[n];
        double[] tem = new double[n];
        int ans = 0;
        double min = 9999;
        double sabun = 0;

        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            tem[i] = t-h[i]*0.006;
            sabun = Math.abs(a-tem[i]);
            if(min>sabun){
                min= sabun;
                ans = i+1;
            }
        }
        System.out.println(ans);




        
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t = sc.nextDouble();
        double a = sc.nextDouble();
        double[] h = new double[n];
        double[] tem = new double[n];
        int ans = 0;
        double min = 9999;
        double sabun = 0;

        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            tem[i] = t-h[i]*0.006;
            sabun = Math.abs(a-tem[i]);
            if(min>sabun){
                min= sabun;
                ans = i+1;
            }
        }
        System.out.println(ans);




        
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t = sc.nextDouble();
        double a = sc.nextDouble();
        double[] h = new double[n];
        double[] tem = new double[n];
        int ans = 0;
        double min = 9999;
        double sabun = 0;

        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            tem[i] = t-h[i]*0.006;
            sabun = Math.abs(a-tem[i]);
            if(min>sabun){
                min= sabun;
                ans = i+1;
            }
        }
        System.out.println(ans);




        
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t = sc.nextDouble();
        double a = sc.nextDouble();
        double[] h = new double[n];
        double[] tem = new double[n];
        int ans = 0;
        double min = 9999;
        double sabun = 0;

        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            tem[i] = t-h[i]*0.006;
            sabun = Math.abs(a-tem[i]);
            if(min>sabun){
                min= sabun;
                ans = i+1;
            }
        }
        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 double t = sc.nextDouble(); t sc.nextDouble() sc.nextDouble sc double a = sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc double[] h = new double[n]; h new double[n] n double[] tem = new double[n]; tem new double[n] n int ans = 0; ans 0 double min = 9999; min 9999 double sabun = 0; sabun 0 for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            tem[i] = t-h[i]*0.006;
            sabun = Math.abs(a-tem[i]);
            if(min>sabun){
                min= sabun;
                ans = i+1;
            }
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            h[i] = sc.nextDouble();
            tem[i] = t-h[i]*0.006;
            sabun = Math.abs(a-tem[i]);
            if(min>sabun){
                min= sabun;
                ans = i+1;
            }
        } {
            h[i] = sc.nextDouble();
            tem[i] = t-h[i]*0.006;
            sabun = Math.abs(a-tem[i]);
            if(min>sabun){
                min= sabun;
                ans = i+1;
            }
        } h[i] = sc.nextDouble() h[i] h i sc.nextDouble() sc.nextDouble sc tem[i] = t-h[i]*0.006 tem[i] tem i t-h[i]*0.006 t h[i]*0.006 h[i] h i 0.006 sabun = Math.abs(a-tem[i]) sabun Math.abs(a-tem[i]) Math.abs Math a-tem[i] a tem[i] tem i if(min>sabun){
                min= sabun;
                ans = i+1;
            } min>sabun min sabun {
                min= sabun;
                ans = i+1;
            } min= sabun min sabun ans = i+1 ans i+1 i 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t = sc.nextDouble();
        double a = sc.nextDouble();
        double[] h = new double[n];
        double[] tem = new double[n];
        int ans = 0;
        double min = 9999;
        double sabun = 0;

        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            tem[i] = t-h[i]*0.006;
            sabun = Math.abs(a-tem[i]);
            if(min>sabun){
                min= sabun;
                ans = i+1;
            }
        }
        System.out.println(ans);




        
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t = sc.nextDouble();
        double a = sc.nextDouble();
        double[] h = new double[n];
        double[] tem = new double[n];
        int ans = 0;
        double min = 9999;
        double sabun = 0;

        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            tem[i] = t-h[i]*0.006;
            sabun = Math.abs(a-tem[i]);
            if(min>sabun){
                min= sabun;
                ans = i+1;
            }
        }
        System.out.println(ans);




        
    }
} Main
import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double t = sc.nextDouble();
        double a = sc.nextDouble();
        double[] h = new double[n];
        double[] tem = new double[n];
        int ans = 0;
        double min = 9999;
        double sabun = 0;

        for(int i = 0;i<n;i++){
            h[i] = sc.nextDouble();
            tem[i] = t-h[i]*0.006;
            sabun = Math.abs(a-tem[i]);
            if(min>sabun){
                min= sabun;
                ans = i+1;
            }
        }
        System.out.println(ans);




        
    }
}
