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());
        Integer[] h = new Integer[n];
        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(sc.next());
        }

        Double[] temperature = new Double[n];
        double min = 100000.0;
        int result = 0;
        for (int i = 0; i < n; i++) {
            temperature[i] = ((double) t - (h[i] * 0.006));
            double difference = Math.abs((double) a - temperature[i]);
            if (min > difference) {
                min = difference;
                result = i + 1;
            }
        }

        System.out.println(result);
    }
} 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());
        Integer[] h = new Integer[n];
        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(sc.next());
        }

        Double[] temperature = new Double[n];
        double min = 100000.0;
        int result = 0;
        for (int i = 0; i < n; i++) {
            temperature[i] = ((double) t - (h[i] * 0.006));
            double difference = Math.abs((double) a - temperature[i]);
            if (min > difference) {
                min = difference;
                result = i + 1;
            }
        }

        System.out.println(result);
    }
} 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());
        Integer[] h = new Integer[n];
        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(sc.next());
        }

        Double[] temperature = new Double[n];
        double min = 100000.0;
        int result = 0;
        for (int i = 0; i < n; i++) {
            temperature[i] = ((double) t - (h[i] * 0.006));
            double difference = Math.abs((double) a - temperature[i]);
            if (min > difference) {
                min = difference;
                result = i + 1;
            }
        }

        System.out.println(result);
    } 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());
        Integer[] h = new Integer[n];
        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(sc.next());
        }

        Double[] temperature = new Double[n];
        double min = 100000.0;
        int result = 0;
        for (int i = 0; i < n; i++) {
            temperature[i] = ((double) t - (h[i] * 0.006));
            double difference = Math.abs((double) a - temperature[i]);
            if (min > difference) {
                min = difference;
                result = i + 1;
            }
        }

        System.out.println(result);
    } 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 Integer[] h = new Integer[n]; h new Integer[n] n for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            h[i] = Integer.parseInt(sc.next());
        } {
            h[i] = Integer.parseInt(sc.next());
        } h[i] = Integer.parseInt(sc.next()) h[i] h i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Double[] temperature = new Double[n]; temperature new Double[n] n double min = 100000.0; min 100000.0 int result = 0; result 0 for (int i = 0; i < n; i++) {
            temperature[i] = ((double) t - (h[i] * 0.006));
            double difference = Math.abs((double) a - temperature[i]);
            if (min > difference) {
                min = difference;
                result = i + 1;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            temperature[i] = ((double) t - (h[i] * 0.006));
            double difference = Math.abs((double) a - temperature[i]);
            if (min > difference) {
                min = difference;
                result = i + 1;
            }
        } {
            temperature[i] = ((double) t - (h[i] * 0.006));
            double difference = Math.abs((double) a - temperature[i]);
            if (min > difference) {
                min = difference;
                result = i + 1;
            }
        } temperature[i] = ((double) t - (h[i] * 0.006)) temperature[i] temperature i ((double) t - (h[i] * 0.006)) (double) t (h[i] * 0.006) h[i] h i 0.006 double difference = Math.abs((double) a - temperature[i]); difference Math.abs((double) a - temperature[i]) Math.abs Math (double) a - temperature[i] (double) a temperature[i] temperature i if (min > difference) {
                min = difference;
                result = i + 1;
            } min > difference min difference {
                min = difference;
                result = i + 1;
            } min = difference min difference result = i + 1 result i + 1 i 1 System.out.println(result) System.out.println System.out System System.out result 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());
        Integer[] h = new Integer[n];
        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(sc.next());
        }

        Double[] temperature = new Double[n];
        double min = 100000.0;
        int result = 0;
        for (int i = 0; i < n; i++) {
            temperature[i] = ((double) t - (h[i] * 0.006));
            double difference = Math.abs((double) a - temperature[i]);
            if (min > difference) {
                min = difference;
                result = i + 1;
            }
        }

        System.out.println(result);
    }
} 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());
        Integer[] h = new Integer[n];
        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(sc.next());
        }

        Double[] temperature = new Double[n];
        double min = 100000.0;
        int result = 0;
        for (int i = 0; i < n; i++) {
            temperature[i] = ((double) t - (h[i] * 0.006));
            double difference = Math.abs((double) a - temperature[i]);
            if (min > difference) {
                min = difference;
                result = i + 1;
            }
        }

        System.out.println(result);
    }
} 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());
        Integer[] h = new Integer[n];
        for (int i = 0; i < n; i++) {
            h[i] = Integer.parseInt(sc.next());
        }

        Double[] temperature = new Double[n];
        double min = 100000.0;
        int result = 0;
        for (int i = 0; i < n; i++) {
            temperature[i] = ((double) t - (h[i] * 0.006));
            double difference = Math.abs((double) a - temperature[i]);
            if (min > difference) {
                min = difference;
                result = i + 1;
            }
        }

        System.out.println(result);
    }
}