import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s_in;
		
		int N = Integer.parseInt(line);
		
		line = sc.nextLine();
		s_in = line.split(" ");
		int T = Integer.parseInt(s_in[0]);
		int A = Integer.parseInt(s_in[1]);
		
		int[] h = new int[N];
		line = sc.nextLine();
		s_in = line.split(" ");
		for(int i=0;i<N;i++) {
			h[i] = Integer.parseInt(s_in[i]);
		}
		
		double[] tempe = new double[N];
		for(int i=0;i<N;i++) {
			tempe[i] = (double)T - h[i]*0.006;
		}
		
		int nearest_h = -1;
		double nearest_dist = 100000;
		for(int i=0;i<N;i++) {
			if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			}
		}
		System.out.println(nearest_h+1);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s_in;
		
		int N = Integer.parseInt(line);
		
		line = sc.nextLine();
		s_in = line.split(" ");
		int T = Integer.parseInt(s_in[0]);
		int A = Integer.parseInt(s_in[1]);
		
		int[] h = new int[N];
		line = sc.nextLine();
		s_in = line.split(" ");
		for(int i=0;i<N;i++) {
			h[i] = Integer.parseInt(s_in[i]);
		}
		
		double[] tempe = new double[N];
		for(int i=0;i<N;i++) {
			tempe[i] = (double)T - h[i]*0.006;
		}
		
		int nearest_h = -1;
		double nearest_dist = 100000;
		for(int i=0;i<N;i++) {
			if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			}
		}
		System.out.println(nearest_h+1);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s_in;
		
		int N = Integer.parseInt(line);
		
		line = sc.nextLine();
		s_in = line.split(" ");
		int T = Integer.parseInt(s_in[0]);
		int A = Integer.parseInt(s_in[1]);
		
		int[] h = new int[N];
		line = sc.nextLine();
		s_in = line.split(" ");
		for(int i=0;i<N;i++) {
			h[i] = Integer.parseInt(s_in[i]);
		}
		
		double[] tempe = new double[N];
		for(int i=0;i<N;i++) {
			tempe[i] = (double)T - h[i]*0.006;
		}
		
		int nearest_h = -1;
		double nearest_dist = 100000;
		for(int i=0;i<N;i++) {
			if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			}
		}
		System.out.println(nearest_h+1);
	} main {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s_in;
		
		int N = Integer.parseInt(line);
		
		line = sc.nextLine();
		s_in = line.split(" ");
		int T = Integer.parseInt(s_in[0]);
		int A = Integer.parseInt(s_in[1]);
		
		int[] h = new int[N];
		line = sc.nextLine();
		s_in = line.split(" ");
		for(int i=0;i<N;i++) {
			h[i] = Integer.parseInt(s_in[i]);
		}
		
		double[] tempe = new double[N];
		for(int i=0;i<N;i++) {
			tempe[i] = (double)T - h[i]*0.006;
		}
		
		int nearest_h = -1;
		double nearest_dist = 100000;
		for(int i=0;i<N;i++) {
			if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			}
		}
		System.out.println(nearest_h+1);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] s_in; s_in int N = Integer.parseInt(line); N Integer.parseInt(line) Integer.parseInt Integer line line = sc.nextLine() line sc.nextLine() sc.nextLine sc s_in = line.split(" ") s_in line.split(" ") line.split line " " int T = Integer.parseInt(s_in[0]); T Integer.parseInt(s_in[0]) Integer.parseInt Integer s_in[0] s_in 0 int A = Integer.parseInt(s_in[1]); A Integer.parseInt(s_in[1]) Integer.parseInt Integer s_in[1] s_in 1 int[] h = new int[N]; h new int[N] N line = sc.nextLine() line sc.nextLine() sc.nextLine sc s_in = line.split(" ") s_in line.split(" ") line.split line " " for(int i=0;i<N;i++) {
			h[i] = Integer.parseInt(s_in[i]);
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			h[i] = Integer.parseInt(s_in[i]);
		} {
			h[i] = Integer.parseInt(s_in[i]);
		} h[i] = Integer.parseInt(s_in[i]) h[i] h i Integer.parseInt(s_in[i]) Integer.parseInt Integer s_in[i] s_in i double[] tempe = new double[N]; tempe new double[N] N for(int i=0;i<N;i++) {
			tempe[i] = (double)T - h[i]*0.006;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			tempe[i] = (double)T - h[i]*0.006;
		} {
			tempe[i] = (double)T - h[i]*0.006;
		} tempe[i] = (double)T - h[i]*0.006 tempe[i] tempe i (double)T - h[i]*0.006 (double)T h[i]*0.006 h[i] h i 0.006 int nearest_h = -1; nearest_h -1 1 double nearest_dist = 100000; nearest_dist 100000 for(int i=0;i<N;i++) {
			if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			}
		} {
			if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			}
		} if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			} Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A) Math.abs(nearest_dist - A) Math.abs Math nearest_dist - A nearest_dist A Math.abs(tempe[i] - A) Math.abs Math tempe[i] - A tempe[i] tempe i A {
				nearest_dist = tempe[i];
				nearest_h    = i;
			} nearest_dist = tempe[i] nearest_dist tempe[i] tempe i nearest_h    = i nearest_h i System.out.println(nearest_h+1) System.out.println System.out System System.out nearest_h+1 nearest_h 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s_in;
		
		int N = Integer.parseInt(line);
		
		line = sc.nextLine();
		s_in = line.split(" ");
		int T = Integer.parseInt(s_in[0]);
		int A = Integer.parseInt(s_in[1]);
		
		int[] h = new int[N];
		line = sc.nextLine();
		s_in = line.split(" ");
		for(int i=0;i<N;i++) {
			h[i] = Integer.parseInt(s_in[i]);
		}
		
		double[] tempe = new double[N];
		for(int i=0;i<N;i++) {
			tempe[i] = (double)T - h[i]*0.006;
		}
		
		int nearest_h = -1;
		double nearest_dist = 100000;
		for(int i=0;i<N;i++) {
			if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			}
		}
		System.out.println(nearest_h+1);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s_in;
		
		int N = Integer.parseInt(line);
		
		line = sc.nextLine();
		s_in = line.split(" ");
		int T = Integer.parseInt(s_in[0]);
		int A = Integer.parseInt(s_in[1]);
		
		int[] h = new int[N];
		line = sc.nextLine();
		s_in = line.split(" ");
		for(int i=0;i<N;i++) {
			h[i] = Integer.parseInt(s_in[i]);
		}
		
		double[] tempe = new double[N];
		for(int i=0;i<N;i++) {
			tempe[i] = (double)T - h[i]*0.006;
		}
		
		int nearest_h = -1;
		double nearest_dist = 100000;
		for(int i=0;i<N;i++) {
			if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			}
		}
		System.out.println(nearest_h+1);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] s_in;
		
		int N = Integer.parseInt(line);
		
		line = sc.nextLine();
		s_in = line.split(" ");
		int T = Integer.parseInt(s_in[0]);
		int A = Integer.parseInt(s_in[1]);
		
		int[] h = new int[N];
		line = sc.nextLine();
		s_in = line.split(" ");
		for(int i=0;i<N;i++) {
			h[i] = Integer.parseInt(s_in[i]);
		}
		
		double[] tempe = new double[N];
		for(int i=0;i<N;i++) {
			tempe[i] = (double)T - h[i]*0.006;
		}
		
		int nearest_h = -1;
		double nearest_dist = 100000;
		for(int i=0;i<N;i++) {
			if(Math.abs(nearest_dist - A) > Math.abs(tempe[i] - A)) {
				nearest_dist = tempe[i];
				nearest_h    = i;
			}
		}
		System.out.println(nearest_h+1);
	}
}
