import java.util.Scanner;

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[] hArr = new int[N];
        for (int i = 0; i < hArr.length; i++) {
            hArr[i] = sc.nextInt();
        }
        sc.close();

        double ht;               // 対象地の気温
        double dif = 0;          // 対象地の目標気温差
        double min = 100000000;  // 候補地の目標気温差
        int hn  = 0;             // 候補地の番号

        // 目標気温差が最小の候補地を選定
        for (int i = 0; i < hArr.length; i++) {

            ht = T - (hArr[i] * 0.006);
            dif = Math.abs(A - ht);

            if(min > dif) {
                hn = i;
                min = dif;
            };
        }
        System.out.println(hn + 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 = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int[] hArr = new int[N];
        for (int i = 0; i < hArr.length; i++) {
            hArr[i] = sc.nextInt();
        }
        sc.close();

        double ht;               // 対象地の気温
        double dif = 0;          // 対象地の目標気温差
        double min = 100000000;  // 候補地の目標気温差
        int hn  = 0;             // 候補地の番号

        // 目標気温差が最小の候補地を選定
        for (int i = 0; i < hArr.length; i++) {

            ht = T - (hArr[i] * 0.006);
            dif = Math.abs(A - ht);

            if(min > dif) {
                hn = i;
                min = dif;
            };
        }
        System.out.println(hn + 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[] hArr = new int[N];
        for (int i = 0; i < hArr.length; i++) {
            hArr[i] = sc.nextInt();
        }
        sc.close();

        double ht;               // 対象地の気温
        double dif = 0;          // 対象地の目標気温差
        double min = 100000000;  // 候補地の目標気温差
        int hn  = 0;             // 候補地の番号

        // 目標気温差が最小の候補地を選定
        for (int i = 0; i < hArr.length; i++) {

            ht = T - (hArr[i] * 0.006);
            dif = Math.abs(A - ht);

            if(min > dif) {
                hn = i;
                min = dif;
            };
        }
        System.out.println(hn + 1);
    } main {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        int[] hArr = new int[N];
        for (int i = 0; i < hArr.length; i++) {
            hArr[i] = sc.nextInt();
        }
        sc.close();

        double ht;               // 対象地の気温
        double dif = 0;          // 対象地の目標気温差
        double min = 100000000;  // 候補地の目標気温差
        int hn  = 0;             // 候補地の番号

        // 目標気温差が最小の候補地を選定
        for (int i = 0; i < hArr.length; i++) {

            ht = T - (hArr[i] * 0.006);
            dif = Math.abs(A - ht);

            if(min > dif) {
                hn = i;
                min = dif;
            };
        }
        System.out.println(hn + 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[] hArr = new int[N]; hArr new int[N] N for (int i = 0; i < hArr.length; i++) {
            hArr[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < hArr.length i hArr.length hArr hArr.length i++ i++ i {
            hArr[i] = sc.nextInt();
        } {
            hArr[i] = sc.nextInt();
        } hArr[i] = sc.nextInt() hArr[i] hArr i sc.nextInt() sc.nextInt sc sc.close() sc.close sc double ht; ht double dif = 0; dif 0 double min = 100000000; min 100000000 int hn  = 0; hn 0 for (int i = 0; i < hArr.length; i++) {

            ht = T - (hArr[i] * 0.006);
            dif = Math.abs(A - ht);

            if(min > dif) {
                hn = i;
                min = dif;
            };
        } int i = 0; int i = 0; i 0 i < hArr.length i hArr.length hArr hArr.length i++ i++ i {

            ht = T - (hArr[i] * 0.006);
            dif = Math.abs(A - ht);

            if(min > dif) {
                hn = i;
                min = dif;
            };
        } {

            ht = T - (hArr[i] * 0.006);
            dif = Math.abs(A - ht);

            if(min > dif) {
                hn = i;
                min = dif;
            };
        } ht = T - (hArr[i] * 0.006) ht T - (hArr[i] * 0.006) T (hArr[i] * 0.006) hArr[i] hArr i 0.006 dif = Math.abs(A - ht) dif Math.abs(A - ht) Math.abs Math A - ht A ht if(min > dif) {
                hn = i;
                min = dif;
            } min > dif min dif {
                hn = i;
                min = dif;
            } hn = i hn i min = dif min dif System.out.println(hn + 1) System.out.println System.out System System.out hn + 1 hn 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[] hArr = new int[N];
        for (int i = 0; i < hArr.length; i++) {
            hArr[i] = sc.nextInt();
        }
        sc.close();

        double ht;               // 対象地の気温
        double dif = 0;          // 対象地の目標気温差
        double min = 100000000;  // 候補地の目標気温差
        int hn  = 0;             // 候補地の番号

        // 目標気温差が最小の候補地を選定
        for (int i = 0; i < hArr.length; i++) {

            ht = T - (hArr[i] * 0.006);
            dif = Math.abs(A - ht);

            if(min > dif) {
                hn = i;
                min = dif;
            };
        }
        System.out.println(hn + 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[] hArr = new int[N];
        for (int i = 0; i < hArr.length; i++) {
            hArr[i] = sc.nextInt();
        }
        sc.close();

        double ht;               // 対象地の気温
        double dif = 0;          // 対象地の目標気温差
        double min = 100000000;  // 候補地の目標気温差
        int hn  = 0;             // 候補地の番号

        // 目標気温差が最小の候補地を選定
        for (int i = 0; i < hArr.length; i++) {

            ht = T - (hArr[i] * 0.006);
            dif = Math.abs(A - ht);

            if(min > dif) {
                hn = i;
                min = dif;
            };
        }
        System.out.println(hn + 1);
    }
} Main
import java.util.Scanner;

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[] hArr = new int[N];
        for (int i = 0; i < hArr.length; i++) {
            hArr[i] = sc.nextInt();
        }
        sc.close();

        double ht;               // 対象地の気温
        double dif = 0;          // 対象地の目標気温差
        double min = 100000000;  // 候補地の目標気温差
        int hn  = 0;             // 候補地の番号

        // 目標気温差が最小の候補地を選定
        for (int i = 0; i < hArr.length; i++) {

            ht = T - (hArr[i] * 0.006);
            dif = Math.abs(A - ht);

            if(min > dif) {
                hn = i;
                min = dif;
            };
        }
        System.out.println(hn + 1);
    }
}