import java.util.*;
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[] h = new Double[n];
        int x = 0;
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextDouble();
            h[i] = Math.abs(a - t + h[i] * 0.006);
            if(h[x] > h[i]){
                x = i;
            }
        }
        System.out.println(x + 1);
        sc.close();
    }
}
//鶏になれ import java.util.*; util.* java 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[] h = new Double[n];
        int x = 0;
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextDouble();
            h[i] = Math.abs(a - t + h[i] * 0.006);
            if(h[x] > h[i]){
                x = i;
            }
        }
        System.out.println(x + 1);
        sc.close();
    }
} 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[] h = new Double[n];
        int x = 0;
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextDouble();
            h[i] = Math.abs(a - t + h[i] * 0.006);
            if(h[x] > h[i]){
                x = i;
            }
        }
        System.out.println(x + 1);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        Double[] h = new Double[n];
        int x = 0;
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextDouble();
            h[i] = Math.abs(a - t + h[i] * 0.006);
            if(h[x] > h[i]){
                x = i;
            }
        }
        System.out.println(x + 1);
        sc.close();
    } 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[] h = new Double[n]; h new Double[n] n int x = 0; x 0 for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextDouble();
            h[i] = Math.abs(a - t + h[i] * 0.006);
            if(h[x] > h[i]){
                x = i;
            }
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            h[i] = sc.nextDouble();
            h[i] = Math.abs(a - t + h[i] * 0.006);
            if(h[x] > h[i]){
                x = i;
            }
        } {
            h[i] = sc.nextDouble();
            h[i] = Math.abs(a - t + h[i] * 0.006);
            if(h[x] > h[i]){
                x = i;
            }
        } h[i] = sc.nextDouble() h[i] h i sc.nextDouble() sc.nextDouble sc h[i] = Math.abs(a - t + h[i] * 0.006) h[i] h i Math.abs(a - t + h[i] * 0.006) Math.abs Math a - t + h[i] * 0.006 a - t a t h[i] * 0.006 h[i] h i 0.006 if(h[x] > h[i]){
                x = i;
            } h[x] > h[i] h[x] h x h[i] h i {
                x = i;
            } x = i x i System.out.println(x + 1) System.out.println System.out System System.out x + 1 x 1 sc.close() sc.close sc 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[] h = new Double[n];
        int x = 0;
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextDouble();
            h[i] = Math.abs(a - t + h[i] * 0.006);
            if(h[x] > h[i]){
                x = i;
            }
        }
        System.out.println(x + 1);
        sc.close();
    }
} 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[] h = new Double[n];
        int x = 0;
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextDouble();
            h[i] = Math.abs(a - t + h[i] * 0.006);
            if(h[x] > h[i]){
                x = i;
            }
        }
        System.out.println(x + 1);
        sc.close();
    }
} Main
import java.util.*;
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[] h = new Double[n];
        int x = 0;
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextDouble();
            h[i] = Math.abs(a - t + h[i] * 0.006);
            if(h[x] > h[i]){
                x = i;
            }
        }
        System.out.println(x + 1);
        sc.close();
    }
}
//鶏になれ