import java.util.*;
import static java.lang.Math.*;
import java.math.BigInteger;

public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int result = 0;
		double min = Double.MAX_VALUE;
		for(int i = 0; i < n; i++){
		    double h = sc.nextDouble();
		    if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    }
		}       
		
		// 計算
		
		
		// 出力
		System.out.println(result);
	}
}
 import java.util.*; util.* java import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; import java.math.BigInteger; BigInteger java.math public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int result = 0;
		double min = Double.MAX_VALUE;
		for(int i = 0; i < n; i++){
		    double h = sc.nextDouble();
		    if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    }
		}       
		
		// 計算
		
		
		// 出力
		System.out.println(result);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int result = 0;
		double min = Double.MAX_VALUE;
		for(int i = 0; i < n; i++){
		    double h = sc.nextDouble();
		    if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    }
		}       
		
		// 計算
		
		
		// 出力
		System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int result = 0;
		double min = Double.MAX_VALUE;
		for(int i = 0; i < n; i++){
		    double h = sc.nextDouble();
		    if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    }
		}       
		
		// 計算
		
		
		// 出力
		System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double t = sc.nextDouble(); t sc.nextDouble() sc.nextDouble sc double a = sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc int result = 0; result 0 double min = Double.MAX_VALUE; min Double.MAX_VALUE Double Double.MAX_VALUE for(int i = 0; i < n; i++){
		    double h = sc.nextDouble();
		    if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    }
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
		    double h = sc.nextDouble();
		    if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    }
		} {
		    double h = sc.nextDouble();
		    if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    }
		} double h = sc.nextDouble(); h sc.nextDouble() sc.nextDouble sc if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    } abs(a - (t - h * 0.006)) < min abs(a - (t - h * 0.006)) abs a - (t - h * 0.006) a (t - h * 0.006) t h * 0.006 h 0.006 min {
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    } result = i + 1 result i + 1 i 1 min = abs(a - (t - h * 0.006)) min abs(a - (t - h * 0.006)) abs a - (t - h * 0.006) a (t - h * 0.006) t h * 0.006 h 0.006 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int result = 0;
		double min = Double.MAX_VALUE;
		for(int i = 0; i < n; i++){
		    double h = sc.nextDouble();
		    if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    }
		}       
		
		// 計算
		
		
		// 出力
		System.out.println(result);
	}
} public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int result = 0;
		double min = Double.MAX_VALUE;
		for(int i = 0; i < n; i++){
		    double h = sc.nextDouble();
		    if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    }
		}       
		
		// 計算
		
		
		// 出力
		System.out.println(result);
	}
} Main
import java.util.*;
import static java.lang.Math.*;
import java.math.BigInteger;

public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int result = 0;
		double min = Double.MAX_VALUE;
		for(int i = 0; i < n; i++){
		    double h = sc.nextDouble();
		    if(abs(a - (t - h * 0.006)) < min){
		        result = i + 1;
		        min = abs(a - (t - h * 0.006));
		    }
		}       
		
		// 計算
		
		
		// 出力
		System.out.println(result);
	}
}

