import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int a = Integer.parseInt(sc.next());

        double[] arr = new double[n]; //aとの差

        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(sc.next());
            double temp = t-arr[i]*0.006;
            arr[i] = Math.abs(a-temp);
        }
        int index = -1;
        double min = arr[0];
        for (int i = 0; i < n; i++) {
            if (min >= arr[i]){
                min = arr[i];
                index = i;
            }
        }
        System.out.println(index+1);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int a = Integer.parseInt(sc.next());

        double[] arr = new double[n]; //aとの差

        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(sc.next());
            double temp = t-arr[i]*0.006;
            arr[i] = Math.abs(a-temp);
        }
        int index = -1;
        double min = arr[0];
        for (int i = 0; i < n; i++) {
            if (min >= arr[i]){
                min = arr[i];
                index = i;
            }
        }
        System.out.println(index+1);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int a = Integer.parseInt(sc.next());

        double[] arr = new double[n]; //aとの差

        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(sc.next());
            double temp = t-arr[i]*0.006;
            arr[i] = Math.abs(a-temp);
        }
        int index = -1;
        double min = arr[0];
        for (int i = 0; i < n; i++) {
            if (min >= arr[i]){
                min = arr[i];
                index = i;
            }
        }
        System.out.println(index+1);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int a = Integer.parseInt(sc.next());

        double[] arr = new double[n]; //aとの差

        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(sc.next());
            double temp = t-arr[i]*0.006;
            arr[i] = Math.abs(a-temp);
        }
        int index = -1;
        double min = arr[0];
        for (int i = 0; i < n; i++) {
            if (min >= arr[i]){
                min = arr[i];
                index = i;
            }
        }
        System.out.println(index+1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int t = Integer.parseInt(sc.next()); t Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double[] arr = new double[n]; arr new double[n] n for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(sc.next());
            double temp = t-arr[i]*0.006;
            arr[i] = Math.abs(a-temp);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            arr[i] = Integer.parseInt(sc.next());
            double temp = t-arr[i]*0.006;
            arr[i] = Math.abs(a-temp);
        } {
            arr[i] = Integer.parseInt(sc.next());
            double temp = t-arr[i]*0.006;
            arr[i] = Math.abs(a-temp);
        } arr[i] = Integer.parseInt(sc.next()) arr[i] arr i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double temp = t-arr[i]*0.006; temp t-arr[i]*0.006 t arr[i]*0.006 arr[i] arr i 0.006 arr[i] = Math.abs(a-temp) arr[i] arr i Math.abs(a-temp) Math.abs Math a-temp a temp int index = -1; index -1 1 double min = arr[0]; min arr[0] arr 0 for (int i = 0; i < n; i++) {
            if (min >= arr[i]){
                min = arr[i];
                index = i;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (min >= arr[i]){
                min = arr[i];
                index = i;
            }
        } {
            if (min >= arr[i]){
                min = arr[i];
                index = i;
            }
        } if (min >= arr[i]){
                min = arr[i];
                index = i;
            } min >= arr[i] min arr[i] arr i {
                min = arr[i];
                index = i;
            } min = arr[i] min arr[i] arr i 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 = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int a = Integer.parseInt(sc.next());

        double[] arr = new double[n]; //aとの差

        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(sc.next());
            double temp = t-arr[i]*0.006;
            arr[i] = Math.abs(a-temp);
        }
        int index = -1;
        double min = arr[0];
        for (int i = 0; i < n; i++) {
            if (min >= arr[i]){
                min = arr[i];
                index = i;
            }
        }
        System.out.println(index+1);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int a = Integer.parseInt(sc.next());

        double[] arr = new double[n]; //aとの差

        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(sc.next());
            double temp = t-arr[i]*0.006;
            arr[i] = Math.abs(a-temp);
        }
        int index = -1;
        double min = arr[0];
        for (int i = 0; i < n; i++) {
            if (min >= arr[i]){
                min = arr[i];
                index = i;
            }
        }
        System.out.println(index+1);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int a = Integer.parseInt(sc.next());

        double[] arr = new double[n]; //aとの差

        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(sc.next());
            double temp = t-arr[i]*0.006;
            arr[i] = Math.abs(a-temp);
        }
        int index = -1;
        double min = arr[0];
        for (int i = 0; i < n; i++) {
            if (min >= arr[i]){
                min = arr[i];
                index = i;
            }
        }
        System.out.println(index+1);
    }
}