import java.util.Scanner;

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();
	}

	double min_diff = 10000;
	int point = 0;

	for(int i = 0; i < N; i++){
	    double temp = T - H_[i]*0.006;
	    if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    }
	}

	System.out.println(point+1);
    }
} import java.util.Scanner; Scanner 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();
	}

	double min_diff = 10000;
	int point = 0;

	for(int i = 0; i < N; i++){
	    double temp = T - H_[i]*0.006;
	    if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    }
	}

	System.out.println(point+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();
	}

	double min_diff = 10000;
	int point = 0;

	for(int i = 0; i < N; i++){
	    double temp = T - H_[i]*0.006;
	    if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    }
	}

	System.out.println(point+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();
	}

	double min_diff = 10000;
	int point = 0;

	for(int i = 0; i < N; i++){
	    double temp = T - H_[i]*0.006;
	    if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    }
	}

	System.out.println(point+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 double min_diff = 10000; min_diff 10000 int point = 0; point 0 for(int i = 0; i < N; i++){
	    double temp = T - H_[i]*0.006;
	    if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    }
	} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
	    double temp = T - H_[i]*0.006;
	    if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    }
	} {
	    double temp = T - H_[i]*0.006;
	    if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    }
	} double temp = T - H_[i]*0.006; temp T - H_[i]*0.006 T H_[i]*0.006 H_[i] H_ i 0.006 if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    } Math.abs(A-temp) < min_diff Math.abs(A-temp) Math.abs Math A-temp A temp min_diff {
		min_diff = Math.abs(A-temp);
		point = i;
	    } min_diff = Math.abs(A-temp) min_diff Math.abs(A-temp) Math.abs Math A-temp A temp point = i point i System.out.println(point+1) System.out.println System.out System System.out point+1 point 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();
	}

	double min_diff = 10000;
	int point = 0;

	for(int i = 0; i < N; i++){
	    double temp = T - H_[i]*0.006;
	    if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    }
	}

	System.out.println(point+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();
	}

	double min_diff = 10000;
	int point = 0;

	for(int i = 0; i < N; i++){
	    double temp = T - H_[i]*0.006;
	    if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    }
	}

	System.out.println(point+1);
    }
} Main
import java.util.Scanner;

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();
	}

	double min_diff = 10000;
	int point = 0;

	for(int i = 0; i < N; i++){
	    double temp = T - H_[i]*0.006;
	    if(Math.abs(A-temp) < min_diff){
		min_diff = Math.abs(A-temp);
		point = i;
	    }
	}

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