import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(),t=sc.nextInt(),a=sc.nextInt();
        int[] h = new int[n];
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int ans = 0;
        int min = 999999999;
        for(int i = 0;i<n;i++){
            int tmp = 1000*t-6*h[i];
            if(Math.abs(tmp-1000*a)<min){
                min = Math.abs(tmp-1000*a);
                ans = i+1;
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(),t=sc.nextInt(),a=sc.nextInt();
        int[] h = new int[n];
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int ans = 0;
        int min = 999999999;
        for(int i = 0;i<n;i++){
            int tmp = 1000*t-6*h[i];
            if(Math.abs(tmp-1000*a)<min){
                min = Math.abs(tmp-1000*a);
                ans = i+1;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(),t=sc.nextInt(),a=sc.nextInt();
        int[] h = new int[n];
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int ans = 0;
        int min = 999999999;
        for(int i = 0;i<n;i++){
            int tmp = 1000*t-6*h[i];
            if(Math.abs(tmp-1000*a)<min){
                min = Math.abs(tmp-1000*a);
                ans = i+1;
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(),t=sc.nextInt(),a=sc.nextInt();
        int[] h = new int[n];
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int ans = 0;
        int min = 999999999;
        for(int i = 0;i<n;i++){
            int tmp = 1000*t-6*h[i];
            if(Math.abs(tmp-1000*a)<min){
                min = Math.abs(tmp-1000*a);
                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 t=sc.nextInt() t sc.nextInt() sc.nextInt sc 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 int ans = 0; ans 0 int min = 999999999; min 999999999 for(int i = 0;i<n;i++){
            int tmp = 1000*t-6*h[i];
            if(Math.abs(tmp-1000*a)<min){
                min = Math.abs(tmp-1000*a);
                ans = i+1;
            }
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            int tmp = 1000*t-6*h[i];
            if(Math.abs(tmp-1000*a)<min){
                min = Math.abs(tmp-1000*a);
                ans = i+1;
            }
        } {
            int tmp = 1000*t-6*h[i];
            if(Math.abs(tmp-1000*a)<min){
                min = Math.abs(tmp-1000*a);
                ans = i+1;
            }
        } int tmp = 1000*t-6*h[i]; tmp 1000*t-6*h[i] 1000*t 1000 t 6*h[i] 6 h[i] h i if(Math.abs(tmp-1000*a)<min){
                min = Math.abs(tmp-1000*a);
                ans = i+1;
            } Math.abs(tmp-1000*a)<min Math.abs(tmp-1000*a) Math.abs Math tmp-1000*a tmp 1000*a 1000 a min {
                min = Math.abs(tmp-1000*a);
                ans = i+1;
            } min = Math.abs(tmp-1000*a) min Math.abs(tmp-1000*a) Math.abs Math tmp-1000*a tmp 1000*a 1000 a ans = i+1 ans i+1 i 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(),t=sc.nextInt(),a=sc.nextInt();
        int[] h = new int[n];
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int ans = 0;
        int min = 999999999;
        for(int i = 0;i<n;i++){
            int tmp = 1000*t-6*h[i];
            if(Math.abs(tmp-1000*a)<min){
                min = Math.abs(tmp-1000*a);
                ans = i+1;
            }
        }
        System.out.println(ans);
    }
}