import java.util.*;
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();
	double [] hairetu= new double[N];
	int []H = new int[N];
	for(int i=0;i<N;i++){
	    H[i] = sc.nextInt(); 
		hairetu[i] = T-H[i]*0.006;
	}
	double []hairetu2 = new double[N];
	for(int i=0;i<N;i++) {
		double ans = A - hairetu[i];
		hairetu2[i] = Math.abs(ans);
	}
	int i;
	int p=1;
	double min = hairetu2[0];
	for(i=1;i<N;i++) {
		if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  }
	   }
	if(p==1) {System.out.println(1);}
	else {System.out.println(p+1);
	}	}
  }  import java.util.*; util.* java 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();
	double [] hairetu= new double[N];
	int []H = new int[N];
	for(int i=0;i<N;i++){
	    H[i] = sc.nextInt(); 
		hairetu[i] = T-H[i]*0.006;
	}
	double []hairetu2 = new double[N];
	for(int i=0;i<N;i++) {
		double ans = A - hairetu[i];
		hairetu2[i] = Math.abs(ans);
	}
	int i;
	int p=1;
	double min = hairetu2[0];
	for(i=1;i<N;i++) {
		if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  }
	   }
	if(p==1) {System.out.println(1);}
	else {System.out.println(p+1);
	}	}
  } 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();
	double [] hairetu= new double[N];
	int []H = new int[N];
	for(int i=0;i<N;i++){
	    H[i] = sc.nextInt(); 
		hairetu[i] = T-H[i]*0.006;
	}
	double []hairetu2 = new double[N];
	for(int i=0;i<N;i++) {
		double ans = A - hairetu[i];
		hairetu2[i] = Math.abs(ans);
	}
	int i;
	int p=1;
	double min = hairetu2[0];
	for(i=1;i<N;i++) {
		if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  }
	   }
	if(p==1) {System.out.println(1);}
	else {System.out.println(p+1);
	}	} main {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int T = sc.nextInt();
	int A = sc.nextInt();
	double [] hairetu= new double[N];
	int []H = new int[N];
	for(int i=0;i<N;i++){
	    H[i] = sc.nextInt(); 
		hairetu[i] = T-H[i]*0.006;
	}
	double []hairetu2 = new double[N];
	for(int i=0;i<N;i++) {
		double ans = A - hairetu[i];
		hairetu2[i] = Math.abs(ans);
	}
	int i;
	int p=1;
	double min = hairetu2[0];
	for(i=1;i<N;i++) {
		if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  }
	   }
	if(p==1) {System.out.println(1);}
	else {System.out.println(p+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 [] hairetu= new double[N]; hairetu new double[N] N int []H = new int[N]; H new int[N] N for(int i=0;i<N;i++){
	    H[i] = sc.nextInt(); 
		hairetu[i] = T-H[i]*0.006;
	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
	    H[i] = sc.nextInt(); 
		hairetu[i] = T-H[i]*0.006;
	} {
	    H[i] = sc.nextInt(); 
		hairetu[i] = T-H[i]*0.006;
	} H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc hairetu[i] = T-H[i]*0.006 hairetu[i] hairetu i T-H[i]*0.006 T H[i]*0.006 H[i] H i 0.006 double []hairetu2 = new double[N]; hairetu2 new double[N] N for(int i=0;i<N;i++) {
		double ans = A - hairetu[i];
		hairetu2[i] = Math.abs(ans);
	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
		double ans = A - hairetu[i];
		hairetu2[i] = Math.abs(ans);
	} {
		double ans = A - hairetu[i];
		hairetu2[i] = Math.abs(ans);
	} double ans = A - hairetu[i]; ans A - hairetu[i] A hairetu[i] hairetu i hairetu2[i] = Math.abs(ans) hairetu2[i] hairetu2 i Math.abs(ans) Math.abs Math ans int i; i int p=1; p 1 double min = hairetu2[0]; min hairetu2[0] hairetu2 0 for(i=1;i<N;i++) {
		if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  }
	   } i=1; i=1 i 1 i<N i N i++ i++ i {
		if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  }
	   } {
		if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  }
	   } if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  } min>hairetu2[i] min hairetu2[i] hairetu2 i {
			min=hairetu2[i];
			p=i;
		  } min=hairetu2[i] min hairetu2[i] hairetu2 i p=i p i if(p==1) {System.out.println(1);}
	else {System.out.println(p+1);
	} p==1 p 1 {System.out.println(1);} System.out.println(1) System.out.println System.out System System.out 1 {System.out.println(p+1);
	} System.out.println(p+1) System.out.println System.out System System.out p+1 p 1 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();
	double [] hairetu= new double[N];
	int []H = new int[N];
	for(int i=0;i<N;i++){
	    H[i] = sc.nextInt(); 
		hairetu[i] = T-H[i]*0.006;
	}
	double []hairetu2 = new double[N];
	for(int i=0;i<N;i++) {
		double ans = A - hairetu[i];
		hairetu2[i] = Math.abs(ans);
	}
	int i;
	int p=1;
	double min = hairetu2[0];
	for(i=1;i<N;i++) {
		if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  }
	   }
	if(p==1) {System.out.println(1);}
	else {System.out.println(p+1);
	}	}
  } 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();
	double [] hairetu= new double[N];
	int []H = new int[N];
	for(int i=0;i<N;i++){
	    H[i] = sc.nextInt(); 
		hairetu[i] = T-H[i]*0.006;
	}
	double []hairetu2 = new double[N];
	for(int i=0;i<N;i++) {
		double ans = A - hairetu[i];
		hairetu2[i] = Math.abs(ans);
	}
	int i;
	int p=1;
	double min = hairetu2[0];
	for(i=1;i<N;i++) {
		if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  }
	   }
	if(p==1) {System.out.println(1);}
	else {System.out.println(p+1);
	}	}
  } Main
import java.util.*;
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();
	double [] hairetu= new double[N];
	int []H = new int[N];
	for(int i=0;i<N;i++){
	    H[i] = sc.nextInt(); 
		hairetu[i] = T-H[i]*0.006;
	}
	double []hairetu2 = new double[N];
	for(int i=0;i<N;i++) {
		double ans = A - hairetu[i];
		hairetu2[i] = Math.abs(ans);
	}
	int i;
	int p=1;
	double min = hairetu2[0];
	for(i=1;i<N;i++) {
		if(min>hairetu2[i]){
			min=hairetu2[i];
			p=i;
		  }
	   }
	if(p==1) {System.out.println(1);}
	else {System.out.println(p+1);
	}	}
  } 
