import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int T = scan.nextInt();
        int A = scan.nextInt();

        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = scan.nextInt();
        }

        int C = (T-A)*1000/6;
        int min = 99999;
        int calc;
        int answer = 0;

        for(int j=0; j<N; j++){
            calc = Math.abs(H[j] - C);
            if (calc < min) {
                min = calc;
                answer = j;
            }
        }

        System.out.println(answer + 1);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int T = scan.nextInt();
        int A = scan.nextInt();

        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = scan.nextInt();
        }

        int C = (T-A)*1000/6;
        int min = 99999;
        int calc;
        int answer = 0;

        for(int j=0; j<N; j++){
            calc = Math.abs(H[j] - C);
            if (calc < min) {
                min = calc;
                answer = j;
            }
        }

        System.out.println(answer + 1);
    }
} Main public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int T = scan.nextInt();
        int A = scan.nextInt();

        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = scan.nextInt();
        }

        int C = (T-A)*1000/6;
        int min = 99999;
        int calc;
        int answer = 0;

        for(int j=0; j<N; j++){
            calc = Math.abs(H[j] - C);
            if (calc < min) {
                min = calc;
                answer = j;
            }
        }

        System.out.println(answer + 1);
    } main {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int T = scan.nextInt();
        int A = scan.nextInt();

        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = scan.nextInt();
        }

        int C = (T-A)*1000/6;
        int min = 99999;
        int calc;
        int answer = 0;

        for(int j=0; j<N; j++){
            calc = Math.abs(H[j] - C);
            if (calc < min) {
                min = calc;
                answer = j;
            }
        }

        System.out.println(answer + 1);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int T = scan.nextInt(); T scan.nextInt() scan.nextInt scan int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int[] H = new int[N]; H new int[N] N for(int i=0; i<N; i++){
            H[i] = scan.nextInt();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            H[i] = scan.nextInt();
        } {
            H[i] = scan.nextInt();
        } H[i] = scan.nextInt() H[i] H i scan.nextInt() scan.nextInt scan int C = (T-A)*1000/6; C (T-A)*1000/6 (T-A)*1000 (T-A) T A 1000 6 int min = 99999; min 99999 int calc; calc int answer = 0; answer 0 for(int j=0; j<N; j++){
            calc = Math.abs(H[j] - C);
            if (calc < min) {
                min = calc;
                answer = j;
            }
        } int j=0; int j=0; j 0 j<N j N j++ j++ j {
            calc = Math.abs(H[j] - C);
            if (calc < min) {
                min = calc;
                answer = j;
            }
        } {
            calc = Math.abs(H[j] - C);
            if (calc < min) {
                min = calc;
                answer = j;
            }
        } calc = Math.abs(H[j] - C) calc Math.abs(H[j] - C) Math.abs Math H[j] - C H[j] H j C if (calc < min) {
                min = calc;
                answer = j;
            } calc < min calc min {
                min = calc;
                answer = j;
            } min = calc min calc answer = j answer j System.out.println(answer + 1) System.out.println System.out System System.out answer + 1 answer 1 String args[] args public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int T = scan.nextInt();
        int A = scan.nextInt();

        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = scan.nextInt();
        }

        int C = (T-A)*1000/6;
        int min = 99999;
        int calc;
        int answer = 0;

        for(int j=0; j<N; j++){
            calc = Math.abs(H[j] - C);
            if (calc < min) {
                min = calc;
                answer = j;
            }
        }

        System.out.println(answer + 1);
    }
} public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int T = scan.nextInt();
        int A = scan.nextInt();

        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = scan.nextInt();
        }

        int C = (T-A)*1000/6;
        int min = 99999;
        int calc;
        int answer = 0;

        for(int j=0; j<N; j++){
            calc = Math.abs(H[j] - C);
            if (calc < min) {
                min = calc;
                answer = j;
            }
        }

        System.out.println(answer + 1);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int T = scan.nextInt();
        int A = scan.nextInt();

        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = scan.nextInt();
        }

        int C = (T-A)*1000/6;
        int min = 99999;
        int calc;
        int answer = 0;

        for(int j=0; j<N; j++){
            calc = Math.abs(H[j] - C);
            if (calc < min) {
                min = calc;
                answer = j;
            }
        }

        System.out.println(answer + 1);
    }
}
