import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		double T = Double.parseDouble(sc.next());
		double A = Double.parseDouble(sc.next());
		double[] H = new double[N];
		for(int i = 0;i < N;i++) {
			H[i] = Double.parseDouble(sc.next());
		}
		sc.close();
		int index = 0;
		double dist = 1000;
		for(int i = 0;i < N;i++) {
			if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			}
		}
		System.out.println(index);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		double T = Double.parseDouble(sc.next());
		double A = Double.parseDouble(sc.next());
		double[] H = new double[N];
		for(int i = 0;i < N;i++) {
			H[i] = Double.parseDouble(sc.next());
		}
		sc.close();
		int index = 0;
		double dist = 1000;
		for(int i = 0;i < N;i++) {
			if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			}
		}
		System.out.println(index);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		double T = Double.parseDouble(sc.next());
		double A = Double.parseDouble(sc.next());
		double[] H = new double[N];
		for(int i = 0;i < N;i++) {
			H[i] = Double.parseDouble(sc.next());
		}
		sc.close();
		int index = 0;
		double dist = 1000;
		for(int i = 0;i < N;i++) {
			if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			}
		}
		System.out.println(index);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		double T = Double.parseDouble(sc.next());
		double A = Double.parseDouble(sc.next());
		double[] H = new double[N];
		for(int i = 0;i < N;i++) {
			H[i] = Double.parseDouble(sc.next());
		}
		sc.close();
		int index = 0;
		double dist = 1000;
		for(int i = 0;i < N;i++) {
			if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			}
		}
		System.out.println(index);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double T = Double.parseDouble(sc.next()); T Double.parseDouble(sc.next()) Double.parseDouble Double sc.next() sc.next sc double A = Double.parseDouble(sc.next()); A Double.parseDouble(sc.next()) Double.parseDouble Double sc.next() sc.next sc double[] H = new double[N]; H new double[N] N for(int i = 0;i < N;i++) {
			H[i] = Double.parseDouble(sc.next());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			H[i] = Double.parseDouble(sc.next());
		} {
			H[i] = Double.parseDouble(sc.next());
		} H[i] = Double.parseDouble(sc.next()) H[i] H i Double.parseDouble(sc.next()) Double.parseDouble Double sc.next() sc.next sc sc.close() sc.close sc int index = 0; index 0 double dist = 1000; dist 1000 for(int i = 0;i < N;i++) {
			if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			}
		} {
			if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			}
		} if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			} Math.abs(A - (T - H[i] * 0.006)) < dist Math.abs(A - (T - H[i] * 0.006)) Math.abs Math A - (T - H[i] * 0.006) A (T - H[i] * 0.006) T H[i] * 0.006 H[i] H i 0.006 dist {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			} dist =Math.abs(A - (T - H[i] * 0.006)) dist Math.abs(A - (T - H[i] * 0.006)) Math.abs Math A - (T - H[i] * 0.006) A (T - H[i] * 0.006) T H[i] * 0.006 H[i] H i 0.006 index = i+1 index i+1 i 1 System.out.println(index) System.out.println System.out System System.out index String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		double T = Double.parseDouble(sc.next());
		double A = Double.parseDouble(sc.next());
		double[] H = new double[N];
		for(int i = 0;i < N;i++) {
			H[i] = Double.parseDouble(sc.next());
		}
		sc.close();
		int index = 0;
		double dist = 1000;
		for(int i = 0;i < N;i++) {
			if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			}
		}
		System.out.println(index);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		double T = Double.parseDouble(sc.next());
		double A = Double.parseDouble(sc.next());
		double[] H = new double[N];
		for(int i = 0;i < N;i++) {
			H[i] = Double.parseDouble(sc.next());
		}
		sc.close();
		int index = 0;
		double dist = 1000;
		for(int i = 0;i < N;i++) {
			if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			}
		}
		System.out.println(index);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		double T = Double.parseDouble(sc.next());
		double A = Double.parseDouble(sc.next());
		double[] H = new double[N];
		for(int i = 0;i < N;i++) {
			H[i] = Double.parseDouble(sc.next());
		}
		sc.close();
		int index = 0;
		double dist = 1000;
		for(int i = 0;i < N;i++) {
			if(Math.abs(A - (T - H[i] * 0.006)) < dist) {
				dist =Math.abs(A - (T - H[i] * 0.006));
				index = i+1;
			}
		}
		System.out.println(index);
	}
}