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];
        for(int i = 0; i < N; i++){
            H[i] = sc.nextInt();
        }
        sc.close();

        int diff = (T-A)*1000/6;
        int index = 0;
        int min = Math.abs(H[0] - diff);
        for(int i = 1; i < N; i++){
            if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            }   
        }
        System.out.println(index+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();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int[] H = new int[N];
        for(int i = 0; i < N; i++){
            H[i] = sc.nextInt();
        }
        sc.close();

        int diff = (T-A)*1000/6;
        int index = 0;
        int min = Math.abs(H[0] - diff);
        for(int i = 1; i < N; i++){
            if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            }   
        }
        System.out.println(index+1);
    }
} 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];
        for(int i = 0; i < N; i++){
            H[i] = sc.nextInt();
        }
        sc.close();

        int diff = (T-A)*1000/6;
        int index = 0;
        int min = Math.abs(H[0] - diff);
        for(int i = 1; i < N; i++){
            if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            }   
        }
        System.out.println(index+1);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int[] H = new int[N];
        for(int i = 0; i < N; i++){
            H[i] = sc.nextInt();
        }
        sc.close();

        int diff = (T-A)*1000/6;
        int index = 0;
        int min = Math.abs(H[0] - diff);
        for(int i = 1; i < N; i++){
            if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            }   
        }
        System.out.println(index+1);
    } 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 for(int i = 0; i < N; i++){
            H[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            H[i] = sc.nextInt();
        } {
            H[i] = sc.nextInt();
        } H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int diff = (T-A)*1000/6; diff (T-A)*1000/6 (T-A)*1000 (T-A) T A 1000 6 int index = 0; index 0 int min = Math.abs(H[0] - diff); min Math.abs(H[0] - diff) Math.abs Math H[0] - diff H[0] H 0 diff for(int i = 1; i < N; i++){
            if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            }   
        } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
            if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            }   
        } {
            if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            }   
        } if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            } min > Math.abs(H[i]-diff) min Math.abs(H[i]-diff) Math.abs Math H[i]-diff H[i] H i diff {
                min = Math.abs(H[i]-diff);
                index = i;
            } min = Math.abs(H[i]-diff) min Math.abs(H[i]-diff) Math.abs Math H[i]-diff H[i] H i diff index = i index i System.out.println(index+1) System.out.println System.out System System.out index+1 index 1 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];
        for(int i = 0; i < N; i++){
            H[i] = sc.nextInt();
        }
        sc.close();

        int diff = (T-A)*1000/6;
        int index = 0;
        int min = Math.abs(H[0] - diff);
        for(int i = 1; i < N; i++){
            if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            }   
        }
        System.out.println(index+1);
    }
} 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];
        for(int i = 0; i < N; i++){
            H[i] = sc.nextInt();
        }
        sc.close();

        int diff = (T-A)*1000/6;
        int index = 0;
        int min = Math.abs(H[0] - diff);
        for(int i = 1; i < N; i++){
            if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            }   
        }
        System.out.println(index+1);
    }
} 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];
        for(int i = 0; i < N; i++){
            H[i] = sc.nextInt();
        }
        sc.close();

        int diff = (T-A)*1000/6;
        int index = 0;
        int min = Math.abs(H[0] - diff);
        for(int i = 1; i < N; i++){
            if(min > Math.abs(H[i]-diff)){
                min = Math.abs(H[i]-diff);
                index = i;
            }   
        }
        System.out.println(index+1);
    }
}