import java.util.Scanner;
import java.lang.Math;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
			int N =sc.nextInt();	
			int T =sc.nextInt();
			int A =sc.nextInt();
			int []H=new int[N];
			double []J=new double[N];
			double []K=new double[N];
			double min=100000;
			int mini=0;
						
				for(int i=0;i<N;i++){
					H[i]=sc.nextInt();
				}
				for(int i=0;i<N;i++){
					J[i]=T-H[i]*0.006;
				}
				for(int i=0;i<N;i++){
					K[i]=Math.abs(A-J[i]);
				}
				for(int i=0;i<N;i++){
					if(K[i]<min){
						min=K[i];
						mini=i+1;
					}
				}
			System.out.println(mini);
	}
} import java.util.Scanner; Scanner java.util import java.lang.Math; Math java.lang public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
			int N =sc.nextInt();	
			int T =sc.nextInt();
			int A =sc.nextInt();
			int []H=new int[N];
			double []J=new double[N];
			double []K=new double[N];
			double min=100000;
			int mini=0;
						
				for(int i=0;i<N;i++){
					H[i]=sc.nextInt();
				}
				for(int i=0;i<N;i++){
					J[i]=T-H[i]*0.006;
				}
				for(int i=0;i<N;i++){
					K[i]=Math.abs(A-J[i]);
				}
				for(int i=0;i<N;i++){
					if(K[i]<min){
						min=K[i];
						mini=i+1;
					}
				}
			System.out.println(mini);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
			int N =sc.nextInt();	
			int T =sc.nextInt();
			int A =sc.nextInt();
			int []H=new int[N];
			double []J=new double[N];
			double []K=new double[N];
			double min=100000;
			int mini=0;
						
				for(int i=0;i<N;i++){
					H[i]=sc.nextInt();
				}
				for(int i=0;i<N;i++){
					J[i]=T-H[i]*0.006;
				}
				for(int i=0;i<N;i++){
					K[i]=Math.abs(A-J[i]);
				}
				for(int i=0;i<N;i++){
					if(K[i]<min){
						min=K[i];
						mini=i+1;
					}
				}
			System.out.println(mini);
	} main {
		Scanner sc = new Scanner(System.in);
		
			int N =sc.nextInt();	
			int T =sc.nextInt();
			int A =sc.nextInt();
			int []H=new int[N];
			double []J=new double[N];
			double []K=new double[N];
			double min=100000;
			int mini=0;
						
				for(int i=0;i<N;i++){
					H[i]=sc.nextInt();
				}
				for(int i=0;i<N;i++){
					J[i]=T-H[i]*0.006;
				}
				for(int i=0;i<N;i++){
					K[i]=Math.abs(A-J[i]);
				}
				for(int i=0;i<N;i++){
					if(K[i]<min){
						min=K[i];
						mini=i+1;
					}
				}
			System.out.println(mini);
	} 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 int []H=new int[N]; H new int[N] N double []J=new double[N]; J new double[N] N double []K=new double[N]; K new double[N] N double min=100000; min 100000 int mini=0; mini 0 for(int i=0;i<N;i++){
					H[i]=sc.nextInt();
				} int i=0; int i=0; i 0 i<N i N i++ i++ i {
					H[i]=sc.nextInt();
				} {
					H[i]=sc.nextInt();
				} H[i]=sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc for(int i=0;i<N;i++){
					J[i]=T-H[i]*0.006;
				} int i=0; int i=0; i 0 i<N i N i++ i++ i {
					J[i]=T-H[i]*0.006;
				} {
					J[i]=T-H[i]*0.006;
				} J[i]=T-H[i]*0.006 J[i] J i T-H[i]*0.006 T H[i]*0.006 H[i] H i 0.006 for(int i=0;i<N;i++){
					K[i]=Math.abs(A-J[i]);
				} int i=0; int i=0; i 0 i<N i N i++ i++ i {
					K[i]=Math.abs(A-J[i]);
				} {
					K[i]=Math.abs(A-J[i]);
				} K[i]=Math.abs(A-J[i]) K[i] K i Math.abs(A-J[i]) Math.abs Math A-J[i] A J[i] J i for(int i=0;i<N;i++){
					if(K[i]<min){
						min=K[i];
						mini=i+1;
					}
				} int i=0; int i=0; i 0 i<N i N i++ i++ i {
					if(K[i]<min){
						min=K[i];
						mini=i+1;
					}
				} {
					if(K[i]<min){
						min=K[i];
						mini=i+1;
					}
				} if(K[i]<min){
						min=K[i];
						mini=i+1;
					} K[i]<min K[i] K i min {
						min=K[i];
						mini=i+1;
					} min=K[i] min K[i] K i mini=i+1 mini i+1 i 1 System.out.println(mini) System.out.println System.out System System.out mini String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
			int N =sc.nextInt();	
			int T =sc.nextInt();
			int A =sc.nextInt();
			int []H=new int[N];
			double []J=new double[N];
			double []K=new double[N];
			double min=100000;
			int mini=0;
						
				for(int i=0;i<N;i++){
					H[i]=sc.nextInt();
				}
				for(int i=0;i<N;i++){
					J[i]=T-H[i]*0.006;
				}
				for(int i=0;i<N;i++){
					K[i]=Math.abs(A-J[i]);
				}
				for(int i=0;i<N;i++){
					if(K[i]<min){
						min=K[i];
						mini=i+1;
					}
				}
			System.out.println(mini);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
			int N =sc.nextInt();	
			int T =sc.nextInt();
			int A =sc.nextInt();
			int []H=new int[N];
			double []J=new double[N];
			double []K=new double[N];
			double min=100000;
			int mini=0;
						
				for(int i=0;i<N;i++){
					H[i]=sc.nextInt();
				}
				for(int i=0;i<N;i++){
					J[i]=T-H[i]*0.006;
				}
				for(int i=0;i<N;i++){
					K[i]=Math.abs(A-J[i]);
				}
				for(int i=0;i<N;i++){
					if(K[i]<min){
						min=K[i];
						mini=i+1;
					}
				}
			System.out.println(mini);
	}
} Main
import java.util.Scanner;
import java.lang.Math;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
			int N =sc.nextInt();	
			int T =sc.nextInt();
			int A =sc.nextInt();
			int []H=new int[N];
			double []J=new double[N];
			double []K=new double[N];
			double min=100000;
			int mini=0;
						
				for(int i=0;i<N;i++){
					H[i]=sc.nextInt();
				}
				for(int i=0;i<N;i++){
					J[i]=T-H[i]*0.006;
				}
				for(int i=0;i<N;i++){
					K[i]=Math.abs(A-J[i]);
				}
				for(int i=0;i<N;i++){
					if(K[i]<min){
						min=K[i];
						mini=i+1;
					}
				}
			System.out.println(mini);
	}
}