import java.util.List;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = sc.nextInt();
        }
        double min = Double.MAX_VALUE;
        int minIndex = 0;
        for (int i = 0; i < n; i++) {
            double temp = t - l[i] * 0.006;
            if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            }

        }

        System.out.println(minIndex + 1);
    }
} import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = sc.nextInt();
        }
        double min = Double.MAX_VALUE;
        int minIndex = 0;
        for (int i = 0; i < n; i++) {
            double temp = t - l[i] * 0.006;
            if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            }

        }

        System.out.println(minIndex + 1);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = sc.nextInt();
        }
        double min = Double.MAX_VALUE;
        int minIndex = 0;
        for (int i = 0; i < n; i++) {
            double temp = t - l[i] * 0.006;
            if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            }

        }

        System.out.println(minIndex + 1);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = sc.nextInt();
        }
        double min = Double.MAX_VALUE;
        int minIndex = 0;
        for (int i = 0; i < n; i++) {
            double temp = t - l[i] * 0.006;
            if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            }

        }

        System.out.println(minIndex + 1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int[] l = new int[n]; l new int[n] n for (int i = 0; i < n; i++) {
            l[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            l[i] = sc.nextInt();
        } {
            l[i] = sc.nextInt();
        } l[i] = sc.nextInt() l[i] l i sc.nextInt() sc.nextInt sc double min = Double.MAX_VALUE; min Double.MAX_VALUE Double Double.MAX_VALUE int minIndex = 0; minIndex 0 for (int i = 0; i < n; i++) {
            double temp = t - l[i] * 0.006;
            if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            }

        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            double temp = t - l[i] * 0.006;
            if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            }

        } {
            double temp = t - l[i] * 0.006;
            if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            }

        } double temp = t - l[i] * 0.006; temp t - l[i] * 0.006 t l[i] * 0.006 l[i] l i 0.006 if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            } Math.abs(temp - a) < min Math.abs(temp - a) Math.abs Math temp - a temp a min {
                min = Math.abs(temp - a);
                minIndex = i;
            } min = Math.abs(temp - a) min Math.abs(temp - a) Math.abs Math temp - a temp a minIndex = i minIndex i System.out.println(minIndex + 1) System.out.println System.out System System.out minIndex + 1 minIndex 1 String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = sc.nextInt();
        }
        double min = Double.MAX_VALUE;
        int minIndex = 0;
        for (int i = 0; i < n; i++) {
            double temp = t - l[i] * 0.006;
            if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            }

        }

        System.out.println(minIndex + 1);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = sc.nextInt();
        }
        double min = Double.MAX_VALUE;
        int minIndex = 0;
        for (int i = 0; i < n; i++) {
            double temp = t - l[i] * 0.006;
            if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            }

        }

        System.out.println(minIndex + 1);
    }
} Main
import java.util.List;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = sc.nextInt();
        }
        double min = Double.MAX_VALUE;
        int minIndex = 0;
        for (int i = 0; i < n; i++) {
            double temp = t - l[i] * 0.006;
            if (Math.abs(temp - a) < min) {
                min = Math.abs(temp - a);
                minIndex = i;
            }

        }

        System.out.println(minIndex + 1);
    }
}