import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int T = Integer.parseInt(sc.next());
        final int A = Integer.parseInt(sc.next());
        int ans = 0;
        double min = 1e6;
        
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(sc.next());
            double b = T - h * 0.006;
            double abs = Math.abs(A - b);
            min = Math.min(min, abs);
            if (min == abs) {
                ans = i + 1;
            }
        }
        
        out.println(ans);
        
        out.flush();
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int T = Integer.parseInt(sc.next());
        final int A = Integer.parseInt(sc.next());
        int ans = 0;
        double min = 1e6;
        
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(sc.next());
            double b = T - h * 0.006;
            double abs = Math.abs(A - b);
            min = Math.min(min, abs);
            if (min == abs) {
                ans = i + 1;
            }
        }
        
        out.println(ans);
        
        out.flush();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int T = Integer.parseInt(sc.next());
        final int A = Integer.parseInt(sc.next());
        int ans = 0;
        double min = 1e6;
        
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(sc.next());
            double b = T - h * 0.006;
            double abs = Math.abs(A - b);
            min = Math.min(min, abs);
            if (min == abs) {
                ans = i + 1;
            }
        }
        
        out.println(ans);
        
        out.flush();
    } main {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int T = Integer.parseInt(sc.next());
        final int A = Integer.parseInt(sc.next());
        int ans = 0;
        double min = 1e6;
        
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(sc.next());
            double b = T - h * 0.006;
            double abs = Math.abs(A - b);
            min = Math.min(min, abs);
            if (min == abs) {
                ans = i + 1;
            }
        }
        
        out.println(ans);
        
        out.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) final int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc final int T = Integer.parseInt(sc.next()); T Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc final int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int ans = 0; ans 0 double min = 1e6; min 1e6 for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(sc.next());
            double b = T - h * 0.006;
            double abs = Math.abs(A - b);
            min = Math.min(min, abs);
            if (min == abs) {
                ans = i + 1;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int h = Integer.parseInt(sc.next());
            double b = T - h * 0.006;
            double abs = Math.abs(A - b);
            min = Math.min(min, abs);
            if (min == abs) {
                ans = i + 1;
            }
        } {
            int h = Integer.parseInt(sc.next());
            double b = T - h * 0.006;
            double abs = Math.abs(A - b);
            min = Math.min(min, abs);
            if (min == abs) {
                ans = i + 1;
            }
        } int h = Integer.parseInt(sc.next()); h Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double b = T - h * 0.006; b T - h * 0.006 T h * 0.006 h 0.006 double abs = Math.abs(A - b); abs Math.abs(A - b) Math.abs Math A - b A b min = Math.min(min, abs) min Math.min(min, abs) Math.min Math min abs if (min == abs) {
                ans = i + 1;
            } min == abs min abs {
                ans = i + 1;
            } ans = i + 1 ans i + 1 i 1 out.println(ans) out.println out ans out.flush() out.flush out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int T = Integer.parseInt(sc.next());
        final int A = Integer.parseInt(sc.next());
        int ans = 0;
        double min = 1e6;
        
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(sc.next());
            double b = T - h * 0.006;
            double abs = Math.abs(A - b);
            min = Math.min(min, abs);
            if (min == abs) {
                ans = i + 1;
            }
        }
        
        out.println(ans);
        
        out.flush();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int T = Integer.parseInt(sc.next());
        final int A = Integer.parseInt(sc.next());
        int ans = 0;
        double min = 1e6;
        
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(sc.next());
            double b = T - h * 0.006;
            double abs = Math.abs(A - b);
            min = Math.min(min, abs);
            if (min == abs) {
                ans = i + 1;
            }
        }
        
        out.println(ans);
        
        out.flush();
    }
} Main
import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int T = Integer.parseInt(sc.next());
        final int A = Integer.parseInt(sc.next());
        int ans = 0;
        double min = 1e6;
        
        for (int i = 0; i < N; i++) {
            int h = Integer.parseInt(sc.next());
            double b = T - h * 0.006;
            double abs = Math.abs(A - b);
            min = Math.min(min, abs);
            if (min == abs) {
                ans = i + 1;
            }
        }
        
        out.println(ans);
        
        out.flush();
    }
}