import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int T = Integer.parseInt(scanner.next());
        int A = Integer.parseInt(scanner.next());

        double ansDiff = Integer.MAX_VALUE;
        int ansIndex = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(scanner.next());
            double temperature = T - h * 0.006;

            double diff = Math.abs(temperature - A);
            if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            }
        }
        scanner.close();

        System.out.println(ansIndex);
    }
}
 import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int T = Integer.parseInt(scanner.next());
        int A = Integer.parseInt(scanner.next());

        double ansDiff = Integer.MAX_VALUE;
        int ansIndex = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(scanner.next());
            double temperature = T - h * 0.006;

            double diff = Math.abs(temperature - A);
            if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            }
        }
        scanner.close();

        System.out.println(ansIndex);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int T = Integer.parseInt(scanner.next());
        int A = Integer.parseInt(scanner.next());

        double ansDiff = Integer.MAX_VALUE;
        int ansIndex = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(scanner.next());
            double temperature = T - h * 0.006;

            double diff = Math.abs(temperature - A);
            if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            }
        }
        scanner.close();

        System.out.println(ansIndex);
    } main {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int T = Integer.parseInt(scanner.next());
        int A = Integer.parseInt(scanner.next());

        double ansDiff = Integer.MAX_VALUE;
        int ansIndex = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(scanner.next());
            double temperature = T - h * 0.006;

            double diff = Math.abs(temperature - A);
            if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            }
        }
        scanner.close();

        System.out.println(ansIndex);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = Integer.parseInt(scanner.next()); N Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int T = Integer.parseInt(scanner.next()); T Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int A = Integer.parseInt(scanner.next()); A Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner double ansDiff = Integer.MAX_VALUE; ansDiff Integer.MAX_VALUE Integer Integer.MAX_VALUE int ansIndex = Integer.MAX_VALUE; ansIndex Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(scanner.next());
            double temperature = T - h * 0.006;

            double diff = Math.abs(temperature - A);
            if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int h = Integer.parseInt(scanner.next());
            double temperature = T - h * 0.006;

            double diff = Math.abs(temperature - A);
            if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            }
        } {
            int h = Integer.parseInt(scanner.next());
            double temperature = T - h * 0.006;

            double diff = Math.abs(temperature - A);
            if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            }
        } int h = Integer.parseInt(scanner.next()); h Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner double temperature = T - h * 0.006; temperature T - h * 0.006 T h * 0.006 h 0.006 double diff = Math.abs(temperature - A); diff Math.abs(temperature - A) Math.abs Math temperature - A temperature A if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            } diff < ansDiff diff ansDiff {
                ansDiff = diff;
                ansIndex = i + 1;
            } ansDiff = diff ansDiff diff ansIndex = i + 1 ansIndex i + 1 i 1 scanner.close() scanner.close scanner System.out.println(ansIndex) System.out.println System.out System System.out ansIndex String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int T = Integer.parseInt(scanner.next());
        int A = Integer.parseInt(scanner.next());

        double ansDiff = Integer.MAX_VALUE;
        int ansIndex = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(scanner.next());
            double temperature = T - h * 0.006;

            double diff = Math.abs(temperature - A);
            if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            }
        }
        scanner.close();

        System.out.println(ansIndex);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int T = Integer.parseInt(scanner.next());
        int A = Integer.parseInt(scanner.next());

        double ansDiff = Integer.MAX_VALUE;
        int ansIndex = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(scanner.next());
            double temperature = T - h * 0.006;

            double diff = Math.abs(temperature - A);
            if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            }
        }
        scanner.close();

        System.out.println(ansIndex);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int T = Integer.parseInt(scanner.next());
        int A = Integer.parseInt(scanner.next());

        double ansDiff = Integer.MAX_VALUE;
        int ansIndex = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(scanner.next());
            double temperature = T - h * 0.006;

            double diff = Math.abs(temperature - A);
            if (diff < ansDiff) {
                ansDiff = diff;
                ansIndex = i + 1;
            }
        }
        scanner.close();

        System.out.println(ansIndex);
    }
}

