import java.util.*;

public class Main{
    public static void main(String[] args) {
        double num = 0.006;
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        int T = sc.nextInt();
        int A = sc.nextInt();
        sc.nextLine();
        int num2 = Integer.MAX_VALUE;
        int tmp;
        int ans = 0;
        for(int i = 0; i < N; i++){
            tmp = sc.nextInt();
            tmp = T*1000 - tmp*6;
            tmp = Math.abs(A*1000 - tmp);
            if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args) {
        double num = 0.006;
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        int T = sc.nextInt();
        int A = sc.nextInt();
        sc.nextLine();
        int num2 = Integer.MAX_VALUE;
        int tmp;
        int ans = 0;
        for(int i = 0; i < N; i++){
            tmp = sc.nextInt();
            tmp = T*1000 - tmp*6;
            tmp = Math.abs(A*1000 - tmp);
            if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        double num = 0.006;
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        int T = sc.nextInt();
        int A = sc.nextInt();
        sc.nextLine();
        int num2 = Integer.MAX_VALUE;
        int tmp;
        int ans = 0;
        for(int i = 0; i < N; i++){
            tmp = sc.nextInt();
            tmp = T*1000 - tmp*6;
            tmp = Math.abs(A*1000 - tmp);
            if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            }
        }
        System.out.println(ans);
    } main {
        double num = 0.006;
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        int T = sc.nextInt();
        int A = sc.nextInt();
        sc.nextLine();
        int num2 = Integer.MAX_VALUE;
        int tmp;
        int ans = 0;
        for(int i = 0; i < N; i++){
            tmp = sc.nextInt();
            tmp = T*1000 - tmp*6;
            tmp = Math.abs(A*1000 - tmp);
            if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            }
        }
        System.out.println(ans);
    } double num = 0.006; num 0.006 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc int num2 = Integer.MAX_VALUE; num2 Integer.MAX_VALUE Integer Integer.MAX_VALUE int tmp; tmp int ans = 0; ans 0 for(int i = 0; i < N; i++){
            tmp = sc.nextInt();
            tmp = T*1000 - tmp*6;
            tmp = Math.abs(A*1000 - tmp);
            if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            tmp = sc.nextInt();
            tmp = T*1000 - tmp*6;
            tmp = Math.abs(A*1000 - tmp);
            if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            }
        } {
            tmp = sc.nextInt();
            tmp = T*1000 - tmp*6;
            tmp = Math.abs(A*1000 - tmp);
            if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            }
        } tmp = sc.nextInt() tmp sc.nextInt() sc.nextInt sc tmp = T*1000 - tmp*6 tmp T*1000 - tmp*6 T*1000 T 1000 tmp*6 tmp 6 tmp = Math.abs(A*1000 - tmp) tmp Math.abs(A*1000 - tmp) Math.abs Math A*1000 - tmp A*1000 A 1000 tmp if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            } tmp < num2 tmp num2 {
                num2 = tmp;
                ans = i+1;
            } num2 = tmp num2 tmp 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) {
        double num = 0.006;
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        int T = sc.nextInt();
        int A = sc.nextInt();
        sc.nextLine();
        int num2 = Integer.MAX_VALUE;
        int tmp;
        int ans = 0;
        for(int i = 0; i < N; i++){
            tmp = sc.nextInt();
            tmp = T*1000 - tmp*6;
            tmp = Math.abs(A*1000 - tmp);
            if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            }
        }
        System.out.println(ans);
    }
} public class Main{
    public static void main(String[] args) {
        double num = 0.006;
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        int T = sc.nextInt();
        int A = sc.nextInt();
        sc.nextLine();
        int num2 = Integer.MAX_VALUE;
        int tmp;
        int ans = 0;
        for(int i = 0; i < N; i++){
            tmp = sc.nextInt();
            tmp = T*1000 - tmp*6;
            tmp = Math.abs(A*1000 - tmp);
            if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args) {
        double num = 0.006;
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        int T = sc.nextInt();
        int A = sc.nextInt();
        sc.nextLine();
        int num2 = Integer.MAX_VALUE;
        int tmp;
        int ans = 0;
        for(int i = 0; i < N; i++){
            tmp = sc.nextInt();
            tmp = T*1000 - tmp*6;
            tmp = Math.abs(A*1000 - tmp);
            if(tmp < num2){
                num2 = tmp;
                ans = i+1;
            }
        }
        System.out.println(ans);
    }
}