
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Scanner;

class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double[] hei = new double[N];
        int sum = 0;
        for (int i = 0; i < N; i++) {
            hei[i] = Math.abs(A-(T-sc.nextInt()*0.006));
        }
        double min = Double.MAX_VALUE;
        int c = -1;
        for (int i = 0; i < N; i++) {
            if(min>hei[i]){
                min=hei[i];
                c=i;
            }
        }
        System.out.println(c+1);
        
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collection; Collection java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double[] hei = new double[N];
        int sum = 0;
        for (int i = 0; i < N; i++) {
            hei[i] = Math.abs(A-(T-sc.nextInt()*0.006));
        }
        double min = Double.MAX_VALUE;
        int c = -1;
        for (int i = 0; i < N; i++) {
            if(min>hei[i]){
                min=hei[i];
                c=i;
            }
        }
        System.out.println(c+1);
        
    }
} Main static final int MOD = 1000000007; MOD 1000000007 public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double[] hei = new double[N];
        int sum = 0;
        for (int i = 0; i < N; i++) {
            hei[i] = Math.abs(A-(T-sc.nextInt()*0.006));
        }
        double min = Double.MAX_VALUE;
        int c = -1;
        for (int i = 0; i < N; i++) {
            if(min>hei[i]){
                min=hei[i];
                c=i;
            }
        }
        System.out.println(c+1);
        
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double[] hei = new double[N];
        int sum = 0;
        for (int i = 0; i < N; i++) {
            hei[i] = Math.abs(A-(T-sc.nextInt()*0.006));
        }
        double min = Double.MAX_VALUE;
        int c = -1;
        for (int i = 0; i < N; i++) {
            if(min>hei[i]){
                min=hei[i];
                c=i;
            }
        }
        System.out.println(c+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 double[] hei = new double[N]; hei new double[N] N int sum = 0; sum 0 for (int i = 0; i < N; i++) {
            hei[i] = Math.abs(A-(T-sc.nextInt()*0.006));
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            hei[i] = Math.abs(A-(T-sc.nextInt()*0.006));
        } {
            hei[i] = Math.abs(A-(T-sc.nextInt()*0.006));
        } hei[i] = Math.abs(A-(T-sc.nextInt()*0.006)) hei[i] hei i Math.abs(A-(T-sc.nextInt()*0.006)) Math.abs Math A-(T-sc.nextInt()*0.006) A (T-sc.nextInt()*0.006) T sc.nextInt()*0.006 sc.nextInt() sc.nextInt sc 0.006 double min = Double.MAX_VALUE; min Double.MAX_VALUE Double Double.MAX_VALUE int c = -1; c -1 1 for (int i = 0; i < N; i++) {
            if(min>hei[i]){
                min=hei[i];
                c=i;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if(min>hei[i]){
                min=hei[i];
                c=i;
            }
        } {
            if(min>hei[i]){
                min=hei[i];
                c=i;
            }
        } if(min>hei[i]){
                min=hei[i];
                c=i;
            } min>hei[i] min hei[i] hei i {
                min=hei[i];
                c=i;
            } min=hei[i] min hei[i] hei i c=i c i System.out.println(c+1) System.out.println System.out System System.out c+1 c 1 String[] args args

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Scanner;

class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int A = sc.nextInt();
        double[] hei = new double[N];
        int sum = 0;
        for (int i = 0; i < N; i++) {
            hei[i] = Math.abs(A-(T-sc.nextInt()*0.006));
        }
        double min = Double.MAX_VALUE;
        int c = -1;
        for (int i = 0; i < N; i++) {
            if(min>hei[i]){
                min=hei[i];
                c=i;
            }
        }
        System.out.println(c+1);
        
    }
}