import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), t = sc.nextInt(), a = sc.nextInt(), x=0;
        double ans = 100000;
        for(int i=0;i<n;i++){
            int h = sc.nextInt();
            if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            }
        }
        System.out.println(x + 1);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), t = sc.nextInt(), a = sc.nextInt(), x=0;
        double ans = 100000;
        for(int i=0;i<n;i++){
            int h = sc.nextInt();
            if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            }
        }
        System.out.println(x + 1);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), t = sc.nextInt(), a = sc.nextInt(), x=0;
        double ans = 100000;
        for(int i=0;i<n;i++){
            int h = sc.nextInt();
            if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            }
        }
        System.out.println(x + 1);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), t = sc.nextInt(), a = sc.nextInt(), x=0;
        double ans = 100000;
        for(int i=0;i<n;i++){
            int h = sc.nextInt();
            if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            }
        }
        System.out.println(x + 1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt() n sc.nextInt() sc.nextInt sc t = sc.nextInt() t sc.nextInt() sc.nextInt sc a = sc.nextInt() a sc.nextInt() sc.nextInt sc x=0; x 0 double ans = 100000; ans 100000 for(int i=0;i<n;i++){
            int h = sc.nextInt();
            if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int h = sc.nextInt();
            if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            }
        } {
            int h = sc.nextInt();
            if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            }
        } int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            } Math.abs(a - (t - h * 0.006)) < ans Math.abs(a - (t - h * 0.006)) Math.abs Math a - (t - h * 0.006) a (t - h * 0.006) t h * 0.006 h 0.006 ans {
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            } ans = Math.abs(a - (t - h * 0.006)) ans Math.abs(a - (t - h * 0.006)) Math.abs Math a - (t - h * 0.006) a (t - h * 0.006) t h * 0.006 h 0.006 x = i x i System.out.println(x + 1) System.out.println System.out System System.out x + 1 x 1 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), t = sc.nextInt(), a = sc.nextInt(), x=0;
        double ans = 100000;
        for(int i=0;i<n;i++){
            int h = sc.nextInt();
            if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            }
        }
        System.out.println(x + 1);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), t = sc.nextInt(), a = sc.nextInt(), x=0;
        double ans = 100000;
        for(int i=0;i<n;i++){
            int h = sc.nextInt();
            if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            }
        }
        System.out.println(x + 1);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), t = sc.nextInt(), a = sc.nextInt(), x=0;
        double ans = 100000;
        for(int i=0;i<n;i++){
            int h = sc.nextInt();
            if(Math.abs(a - (t - h * 0.006)) < ans){
                ans = Math.abs(a - (t - h * 0.006));
                x = i;
            }
        }
        System.out.println(x + 1);
    }
}