import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] ta = scanner.nextLine().split(" ", 2);
        int t = Integer.parseInt(ta[0]);
        int a = Integer.parseInt(ta[1]);

        String[] hLine = scanner.nextLine().split(" ", n);
        double minDiff = 100000.0;
        int minInd = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(hLine[i]);
            double temp = (double)t - (double)h * 0.006;
            double diff = Math.abs((double)a - temp);
            if (diff < minDiff) {
                minDiff = diff;
                minInd = i;
            }
        }
        System.out.println(minInd + 1);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] ta = scanner.nextLine().split(" ", 2);
        int t = Integer.parseInt(ta[0]);
        int a = Integer.parseInt(ta[1]);

        String[] hLine = scanner.nextLine().split(" ", n);
        double minDiff = 100000.0;
        int minInd = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(hLine[i]);
            double temp = (double)t - (double)h * 0.006;
            double diff = Math.abs((double)a - temp);
            if (diff < minDiff) {
                minDiff = diff;
                minInd = i;
            }
        }
        System.out.println(minInd + 1);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] ta = scanner.nextLine().split(" ", 2);
        int t = Integer.parseInt(ta[0]);
        int a = Integer.parseInt(ta[1]);

        String[] hLine = scanner.nextLine().split(" ", n);
        double minDiff = 100000.0;
        int minInd = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(hLine[i]);
            double temp = (double)t - (double)h * 0.006;
            double diff = Math.abs((double)a - temp);
            if (diff < minDiff) {
                minDiff = diff;
                minInd = i;
            }
        }
        System.out.println(minInd + 1);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] ta = scanner.nextLine().split(" ", 2);
        int t = Integer.parseInt(ta[0]);
        int a = Integer.parseInt(ta[1]);

        String[] hLine = scanner.nextLine().split(" ", n);
        double minDiff = 100000.0;
        int minInd = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(hLine[i]);
            double temp = (double)t - (double)h * 0.006;
            double diff = Math.abs((double)a - temp);
            if (diff < minDiff) {
                minDiff = diff;
                minInd = i;
            }
        }
        System.out.println(minInd + 1);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.nextLine()); n Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner String[] ta = scanner.nextLine().split(" ", 2); ta scanner.nextLine().split(" ", 2) scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " 2 int t = Integer.parseInt(ta[0]); t Integer.parseInt(ta[0]) Integer.parseInt Integer ta[0] ta 0 int a = Integer.parseInt(ta[1]); a Integer.parseInt(ta[1]) Integer.parseInt Integer ta[1] ta 1 String[] hLine = scanner.nextLine().split(" ", n); hLine scanner.nextLine().split(" ", n) scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " n double minDiff = 100000.0; minDiff 100000.0 int minInd = 0; minInd 0 for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(hLine[i]);
            double temp = (double)t - (double)h * 0.006;
            double diff = Math.abs((double)a - temp);
            if (diff < minDiff) {
                minDiff = diff;
                minInd = i;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int h = Integer.parseInt(hLine[i]);
            double temp = (double)t - (double)h * 0.006;
            double diff = Math.abs((double)a - temp);
            if (diff < minDiff) {
                minDiff = diff;
                minInd = i;
            }
        } {
            int h = Integer.parseInt(hLine[i]);
            double temp = (double)t - (double)h * 0.006;
            double diff = Math.abs((double)a - temp);
            if (diff < minDiff) {
                minDiff = diff;
                minInd = i;
            }
        } int h = Integer.parseInt(hLine[i]); h Integer.parseInt(hLine[i]) Integer.parseInt Integer hLine[i] hLine i double temp = (double)t - (double)h * 0.006; temp (double)t - (double)h * 0.006 (double)t (double)h * 0.006 (double)h 0.006 double diff = Math.abs((double)a - temp); diff Math.abs((double)a - temp) Math.abs Math (double)a - temp (double)a temp if (diff < minDiff) {
                minDiff = diff;
                minInd = i;
            } diff < minDiff diff minDiff {
                minDiff = diff;
                minInd = i;
            } minDiff = diff minDiff diff minInd = i minInd i System.out.println(minInd + 1) System.out.println System.out System System.out minInd + 1 minInd 1 String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] ta = scanner.nextLine().split(" ", 2);
        int t = Integer.parseInt(ta[0]);
        int a = Integer.parseInt(ta[1]);

        String[] hLine = scanner.nextLine().split(" ", n);
        double minDiff = 100000.0;
        int minInd = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(hLine[i]);
            double temp = (double)t - (double)h * 0.006;
            double diff = Math.abs((double)a - temp);
            if (diff < minDiff) {
                minDiff = diff;
                minInd = i;
            }
        }
        System.out.println(minInd + 1);
    }
}