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();
        int[] H = new int[N];
        double[] t = new double[N];
        double min = 1000;
        int ans = 0;

        for(int i=0; i<N; i++){
            t[i] = T - sc.nextInt() * 0.006;
            min = Math.min(min, Math.abs(A - t[i]));
            if(min==Math.abs(A-t[i])){
                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();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int[] H = new int[N];
        double[] t = new double[N];
        double min = 1000;
        int ans = 0;

        for(int i=0; i<N; i++){
            t[i] = T - sc.nextInt() * 0.006;
            min = Math.min(min, Math.abs(A - t[i]));
            if(min==Math.abs(A-t[i])){
                ans = i + 1;
            }
        }
        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();
        int[] H = new int[N];
        double[] t = new double[N];
        double min = 1000;
        int ans = 0;

        for(int i=0; i<N; i++){
            t[i] = T - sc.nextInt() * 0.006;
            min = Math.min(min, Math.abs(A - t[i]));
            if(min==Math.abs(A-t[i])){
                ans = i + 1;
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int[] H = new int[N];
        double[] t = new double[N];
        double min = 1000;
        int ans = 0;

        for(int i=0; i<N; i++){
            t[i] = T - sc.nextInt() * 0.006;
            min = Math.min(min, Math.abs(A - t[i]));
            if(min==Math.abs(A-t[i])){
                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 int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int[] H = new int[N]; H new int[N] N double[] t = new double[N]; t new double[N] N double min = 1000; min 1000 int ans = 0; ans 0 for(int i=0; i<N; i++){
            t[i] = T - sc.nextInt() * 0.006;
            min = Math.min(min, Math.abs(A - t[i]));
            if(min==Math.abs(A-t[i])){
                ans = i + 1;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            t[i] = T - sc.nextInt() * 0.006;
            min = Math.min(min, Math.abs(A - t[i]));
            if(min==Math.abs(A-t[i])){
                ans = i + 1;
            }
        } {
            t[i] = T - sc.nextInt() * 0.006;
            min = Math.min(min, Math.abs(A - t[i]));
            if(min==Math.abs(A-t[i])){
                ans = i + 1;
            }
        } t[i] = T - sc.nextInt() * 0.006 t[i] t i T - sc.nextInt() * 0.006 T sc.nextInt() * 0.006 sc.nextInt() sc.nextInt sc 0.006 min = Math.min(min, Math.abs(A - t[i])) min Math.min(min, Math.abs(A - t[i])) Math.min Math min Math.abs(A - t[i]) Math.abs Math A - t[i] A t[i] t i if(min==Math.abs(A-t[i])){
                ans = i + 1;
            } min==Math.abs(A-t[i]) min Math.abs(A-t[i]) Math.abs Math A-t[i] A t[i] t i {
                ans = i + 1;
            } 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();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int[] H = new int[N];
        double[] t = new double[N];
        double min = 1000;
        int ans = 0;

        for(int i=0; i<N; i++){
            t[i] = T - sc.nextInt() * 0.006;
            min = Math.min(min, Math.abs(A - t[i]));
            if(min==Math.abs(A-t[i])){
                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();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int[] H = new int[N];
        double[] t = new double[N];
        double min = 1000;
        int ans = 0;

        for(int i=0; i<N; i++){
            t[i] = T - sc.nextInt() * 0.006;
            min = Math.min(min, Math.abs(A - t[i]));
            if(min==Math.abs(A-t[i])){
                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();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int[] H = new int[N];
        double[] t = new double[N];
        double min = 1000;
        int ans = 0;

        for(int i=0; i<N; i++){
            t[i] = T - sc.nextInt() * 0.006;
            min = Math.min(min, Math.abs(A - t[i]));
            if(min==Math.abs(A-t[i])){
                ans = i + 1;
            }
        }
        System.out.println(ans);
    }
}