import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.nextLine();
        int t = sc.nextInt();
        int a = sc.nextInt();
        sc.nextLine();
        int[] h = new int[n];
        double[] cal = new double[n];
        double[] res = new double[n];
        for (int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            cal[i] = t - h[i] * 0.006;
            res[i] = Math.abs(a-cal[i]);
        }
        double min = 999999;
        int ansewer = -1;
        for (int i = 0; i < n; i++){
            if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            }
        }
        System.out.println(ansewer);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.nextLine();
        int t = sc.nextInt();
        int a = sc.nextInt();
        sc.nextLine();
        int[] h = new int[n];
        double[] cal = new double[n];
        double[] res = new double[n];
        for (int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            cal[i] = t - h[i] * 0.006;
            res[i] = Math.abs(a-cal[i]);
        }
        double min = 999999;
        int ansewer = -1;
        for (int i = 0; i < n; i++){
            if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            }
        }
        System.out.println(ansewer);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.nextLine();
        int t = sc.nextInt();
        int a = sc.nextInt();
        sc.nextLine();
        int[] h = new int[n];
        double[] cal = new double[n];
        double[] res = new double[n];
        for (int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            cal[i] = t - h[i] * 0.006;
            res[i] = Math.abs(a-cal[i]);
        }
        double min = 999999;
        int ansewer = -1;
        for (int i = 0; i < n; i++){
            if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            }
        }
        System.out.println(ansewer);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.nextLine();
        int t = sc.nextInt();
        int a = sc.nextInt();
        sc.nextLine();
        int[] h = new int[n];
        double[] cal = new double[n];
        double[] res = new double[n];
        for (int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            cal[i] = t - h[i] * 0.006;
            res[i] = Math.abs(a-cal[i]);
        }
        double min = 999999;
        int ansewer = -1;
        for (int i = 0; i < n; i++){
            if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            }
        }
        System.out.println(ansewer);
    } 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[] h = new int[n]; h new int[n] n double[] cal = new double[n]; cal new double[n] n double[] res = new double[n]; res new double[n] n for (int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            cal[i] = t - h[i] * 0.006;
            res[i] = Math.abs(a-cal[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            h[i] = sc.nextInt();
            cal[i] = t - h[i] * 0.006;
            res[i] = Math.abs(a-cal[i]);
        } {
            h[i] = sc.nextInt();
            cal[i] = t - h[i] * 0.006;
            res[i] = Math.abs(a-cal[i]);
        } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc cal[i] = t - h[i] * 0.006 cal[i] cal i t - h[i] * 0.006 t h[i] * 0.006 h[i] h i 0.006 res[i] = Math.abs(a-cal[i]) res[i] res i Math.abs(a-cal[i]) Math.abs Math a-cal[i] a cal[i] cal i double min = 999999; min 999999 int ansewer = -1; ansewer -1 1 for (int i = 0; i < n; i++){
            if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            }
        } {
            if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            }
        } if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            } min > res[i] min res[i] res i {
                min = res[i];
                ansewer = i + 1;
            } min = res[i] min res[i] res i ansewer = i + 1 ansewer i + 1 i 1 System.out.println(ansewer) System.out.println System.out System System.out ansewer String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.nextLine();
        int t = sc.nextInt();
        int a = sc.nextInt();
        sc.nextLine();
        int[] h = new int[n];
        double[] cal = new double[n];
        double[] res = new double[n];
        for (int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            cal[i] = t - h[i] * 0.006;
            res[i] = Math.abs(a-cal[i]);
        }
        double min = 999999;
        int ansewer = -1;
        for (int i = 0; i < n; i++){
            if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            }
        }
        System.out.println(ansewer);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.nextLine();
        int t = sc.nextInt();
        int a = sc.nextInt();
        sc.nextLine();
        int[] h = new int[n];
        double[] cal = new double[n];
        double[] res = new double[n];
        for (int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            cal[i] = t - h[i] * 0.006;
            res[i] = Math.abs(a-cal[i]);
        }
        double min = 999999;
        int ansewer = -1;
        for (int i = 0; i < n; i++){
            if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            }
        }
        System.out.println(ansewer);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.nextLine();
        int t = sc.nextInt();
        int a = sc.nextInt();
        sc.nextLine();
        int[] h = new int[n];
        double[] cal = new double[n];
        double[] res = new double[n];
        for (int i = 0; i < n; i++){
            h[i] = sc.nextInt();
            cal[i] = t - h[i] * 0.006;
            res[i] = Math.abs(a-cal[i]);
        }
        double min = 999999;
        int ansewer = -1;
        for (int i = 0; i < n; i++){
            if (min > res[i]){
                min = res[i];
                ansewer = i + 1;
            }
        }
        System.out.println(ansewer);
    }
}
