import java.util.*;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.ArrayDeque;
import java.util.Deque;


public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer n = Integer.parseInt(br.readLine());
        String[] ta = br.readLine().split(" ");
        double t = Double.parseDouble(ta[0]);
        double a = Double.parseDouble(ta[1]);
        String[] str_hs = br.readLine().split(" ");
        int[] hs = new int[n];
        for (int i = 0; i < n; i++) {
            hs[i] = Integer.parseInt(str_hs[i]);
        }
        
        double min = 1000000;
        int index = 0;
        for (int i = 0; i < n; i++) {
            double avg = t - hs[i] * 0.006;
            double diff=a-avg;
            
            if (diff <0) diff = -1*diff;
            if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            }
        }
        
        
        System.out.println(index);
    }
} import java.util.*; util.* java import java.io.InputStreamReader; InputStreamReader java.io import java.io.BufferedReader; BufferedReader java.io import java.util.Arrays; Arrays java.util import java.util.ArrayList; ArrayList java.util import java.util.ArrayDeque; ArrayDeque java.util import java.util.Deque; Deque java.util public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer n = Integer.parseInt(br.readLine());
        String[] ta = br.readLine().split(" ");
        double t = Double.parseDouble(ta[0]);
        double a = Double.parseDouble(ta[1]);
        String[] str_hs = br.readLine().split(" ");
        int[] hs = new int[n];
        for (int i = 0; i < n; i++) {
            hs[i] = Integer.parseInt(str_hs[i]);
        }
        
        double min = 1000000;
        int index = 0;
        for (int i = 0; i < n; i++) {
            double avg = t - hs[i] * 0.006;
            double diff=a-avg;
            
            if (diff <0) diff = -1*diff;
            if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            }
        }
        
        
        System.out.println(index);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer n = Integer.parseInt(br.readLine());
        String[] ta = br.readLine().split(" ");
        double t = Double.parseDouble(ta[0]);
        double a = Double.parseDouble(ta[1]);
        String[] str_hs = br.readLine().split(" ");
        int[] hs = new int[n];
        for (int i = 0; i < n; i++) {
            hs[i] = Integer.parseInt(str_hs[i]);
        }
        
        double min = 1000000;
        int index = 0;
        for (int i = 0; i < n; i++) {
            double avg = t - hs[i] * 0.006;
            double diff=a-avg;
            
            if (diff <0) diff = -1*diff;
            if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            }
        }
        
        
        System.out.println(index);
    } main {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer n = Integer.parseInt(br.readLine());
        String[] ta = br.readLine().split(" ");
        double t = Double.parseDouble(ta[0]);
        double a = Double.parseDouble(ta[1]);
        String[] str_hs = br.readLine().split(" ");
        int[] hs = new int[n];
        for (int i = 0; i < n; i++) {
            hs[i] = Integer.parseInt(str_hs[i]);
        }
        
        double min = 1000000;
        int index = 0;
        for (int i = 0; i < n; i++) {
            double avg = t - hs[i] * 0.006;
            double diff=a-avg;
            
            if (diff <0) diff = -1*diff;
            if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            }
        }
        
        
        System.out.println(index);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Integer n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] ta = br.readLine().split(" "); ta br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " double t = Double.parseDouble(ta[0]); t Double.parseDouble(ta[0]) Double.parseDouble Double ta[0] ta 0 double a = Double.parseDouble(ta[1]); a Double.parseDouble(ta[1]) Double.parseDouble Double ta[1] ta 1 String[] str_hs = br.readLine().split(" "); str_hs br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] hs = new int[n]; hs new int[n] n for (int i = 0; i < n; i++) {
            hs[i] = Integer.parseInt(str_hs[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            hs[i] = Integer.parseInt(str_hs[i]);
        } {
            hs[i] = Integer.parseInt(str_hs[i]);
        } hs[i] = Integer.parseInt(str_hs[i]) hs[i] hs i Integer.parseInt(str_hs[i]) Integer.parseInt Integer str_hs[i] str_hs i double min = 1000000; min 1000000 int index = 0; index 0 for (int i = 0; i < n; i++) {
            double avg = t - hs[i] * 0.006;
            double diff=a-avg;
            
            if (diff <0) diff = -1*diff;
            if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            double avg = t - hs[i] * 0.006;
            double diff=a-avg;
            
            if (diff <0) diff = -1*diff;
            if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            }
        } {
            double avg = t - hs[i] * 0.006;
            double diff=a-avg;
            
            if (diff <0) diff = -1*diff;
            if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            }
        } double avg = t - hs[i] * 0.006; avg t - hs[i] * 0.006 t hs[i] * 0.006 hs[i] hs i 0.006 double diff=a-avg; diff a-avg a avg if (diff <0) diff = -1*diff; diff <0 diff 0 diff = -1*diff diff -1*diff -1 1 diff if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            } Math.abs(diff) < min Math.abs(diff) Math.abs Math diff min {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            } min = diff min diff index = i+1 index i+1 i 1 System.out.println(index) System.out.println System.out System System.out index String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer n = Integer.parseInt(br.readLine());
        String[] ta = br.readLine().split(" ");
        double t = Double.parseDouble(ta[0]);
        double a = Double.parseDouble(ta[1]);
        String[] str_hs = br.readLine().split(" ");
        int[] hs = new int[n];
        for (int i = 0; i < n; i++) {
            hs[i] = Integer.parseInt(str_hs[i]);
        }
        
        double min = 1000000;
        int index = 0;
        for (int i = 0; i < n; i++) {
            double avg = t - hs[i] * 0.006;
            double diff=a-avg;
            
            if (diff <0) diff = -1*diff;
            if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            }
        }
        
        
        System.out.println(index);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer n = Integer.parseInt(br.readLine());
        String[] ta = br.readLine().split(" ");
        double t = Double.parseDouble(ta[0]);
        double a = Double.parseDouble(ta[1]);
        String[] str_hs = br.readLine().split(" ");
        int[] hs = new int[n];
        for (int i = 0; i < n; i++) {
            hs[i] = Integer.parseInt(str_hs[i]);
        }
        
        double min = 1000000;
        int index = 0;
        for (int i = 0; i < n; i++) {
            double avg = t - hs[i] * 0.006;
            double diff=a-avg;
            
            if (diff <0) diff = -1*diff;
            if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            }
        }
        
        
        System.out.println(index);
    }
} Main
import java.util.*;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.ArrayDeque;
import java.util.Deque;


public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer n = Integer.parseInt(br.readLine());
        String[] ta = br.readLine().split(" ");
        double t = Double.parseDouble(ta[0]);
        double a = Double.parseDouble(ta[1]);
        String[] str_hs = br.readLine().split(" ");
        int[] hs = new int[n];
        for (int i = 0; i < n; i++) {
            hs[i] = Integer.parseInt(str_hs[i]);
        }
        
        double min = 1000000;
        int index = 0;
        for (int i = 0; i < n; i++) {
            double avg = t - hs[i] * 0.006;
            double diff=a-avg;
            
            if (diff <0) diff = -1*diff;
            if (Math.abs(diff) < min) {
                min = diff;//Math.abs(a - avg);
                index = i+1;
            }
        }
        
        
        System.out.println(index);
    }
}
