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 height = (t - a) / 0.006;
		int min = 0;
		double min_value = Double.MAX_VALUE;
		for (int i = 0 ; i < n; i++) {
			double tmp = Math.abs(height - sc.nextInt());
			if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			}
		}
		System.out.println(min);
	}
	
	
} 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 height = (t - a) / 0.006;
		int min = 0;
		double min_value = Double.MAX_VALUE;
		for (int i = 0 ; i < n; i++) {
			double tmp = Math.abs(height - sc.nextInt());
			if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			}
		}
		System.out.println(min);
	}
	
	
} 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 height = (t - a) / 0.006;
		int min = 0;
		double min_value = Double.MAX_VALUE;
		for (int i = 0 ; i < n; i++) {
			double tmp = Math.abs(height - sc.nextInt());
			if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			}
		}
		System.out.println(min);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double height = (t - a) / 0.006;
		int min = 0;
		double min_value = Double.MAX_VALUE;
		for (int i = 0 ; i < n; i++) {
			double tmp = Math.abs(height - sc.nextInt());
			if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			}
		}
		System.out.println(min);
	} 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 height = (t - a) / 0.006; height (t - a) / 0.006 (t - a) t a 0.006 int min = 0; min 0 double min_value = Double.MAX_VALUE; min_value Double.MAX_VALUE Double Double.MAX_VALUE for (int i = 0 ; i < n; i++) {
			double tmp = Math.abs(height - sc.nextInt());
			if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			}
		} int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
			double tmp = Math.abs(height - sc.nextInt());
			if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			}
		} {
			double tmp = Math.abs(height - sc.nextInt());
			if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			}
		} double tmp = Math.abs(height - sc.nextInt()); tmp Math.abs(height - sc.nextInt()) Math.abs Math height - sc.nextInt() height sc.nextInt() sc.nextInt sc if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			} tmp < min_value tmp min_value {
				min_value = tmp;
				min = i + 1;
			} min_value = tmp min_value tmp min = i + 1 min i + 1 i 1 System.out.println(min) System.out.println System.out System System.out min 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 height = (t - a) / 0.006;
		int min = 0;
		double min_value = Double.MAX_VALUE;
		for (int i = 0 ; i < n; i++) {
			double tmp = Math.abs(height - sc.nextInt());
			if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			}
		}
		System.out.println(min);
	}
	
	
} 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 height = (t - a) / 0.006;
		int min = 0;
		double min_value = Double.MAX_VALUE;
		for (int i = 0 ; i < n; i++) {
			double tmp = Math.abs(height - sc.nextInt());
			if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			}
		}
		System.out.println(min);
	}
	
	
} 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 height = (t - a) / 0.006;
		int min = 0;
		double min_value = Double.MAX_VALUE;
		for (int i = 0 ; i < n; i++) {
			double tmp = Math.abs(height - sc.nextInt());
			if (tmp < min_value) {
				min_value = tmp;
				min = i + 1;
			}
		}
		System.out.println(min);
	}
	
	
}