
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		double T = sc.nextDouble();
		double A = sc.nextDouble();
		long ans = 1;
		double H = sc.nextDouble();
		double tmp = T - H * 0.006;
		double tem = Math.abs(A - tmp);
		for(long i = 2; i < N + 1; i++) {
			H = sc.nextDouble();
			tmp = T - H * 0.006;
			if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			}
		}
		System.out.println(ans);

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		double T = sc.nextDouble();
		double A = sc.nextDouble();
		long ans = 1;
		double H = sc.nextDouble();
		double tmp = T - H * 0.006;
		double tem = Math.abs(A - tmp);
		for(long i = 2; i < N + 1; i++) {
			H = sc.nextDouble();
			tmp = T - H * 0.006;
			if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			}
		}
		System.out.println(ans);

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		double T = sc.nextDouble();
		double A = sc.nextDouble();
		long ans = 1;
		double H = sc.nextDouble();
		double tmp = T - H * 0.006;
		double tem = Math.abs(A - tmp);
		for(long i = 2; i < N + 1; i++) {
			H = sc.nextDouble();
			tmp = T - H * 0.006;
			if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			}
		}
		System.out.println(ans);

	} main {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		double T = sc.nextDouble();
		double A = sc.nextDouble();
		long ans = 1;
		double H = sc.nextDouble();
		double tmp = T - H * 0.006;
		double tem = Math.abs(A - tmp);
		for(long i = 2; i < N + 1; i++) {
			H = sc.nextDouble();
			tmp = T - H * 0.006;
			if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			}
		}
		System.out.println(ans);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc double T = sc.nextDouble(); T sc.nextDouble() sc.nextDouble sc double A = sc.nextDouble(); A sc.nextDouble() sc.nextDouble sc long ans = 1; ans 1 double H = sc.nextDouble(); H sc.nextDouble() sc.nextDouble sc double tmp = T - H * 0.006; tmp T - H * 0.006 T H * 0.006 H 0.006 double tem = Math.abs(A - tmp); tem Math.abs(A - tmp) Math.abs Math A - tmp A tmp for(long i = 2; i < N + 1; i++) {
			H = sc.nextDouble();
			tmp = T - H * 0.006;
			if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			}
		} long i = 2; long i = 2; i 2 i < N + 1 i N + 1 N 1 i++ i++ i {
			H = sc.nextDouble();
			tmp = T - H * 0.006;
			if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			}
		} {
			H = sc.nextDouble();
			tmp = T - H * 0.006;
			if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			}
		} H = sc.nextDouble() H sc.nextDouble() sc.nextDouble sc tmp = T - H * 0.006 tmp T - H * 0.006 T H * 0.006 H 0.006 if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			} tem > Math.abs(A - tmp) tem Math.abs(A - tmp) Math.abs Math A - tmp A tmp {
				tem = Math.abs(A - tmp);
				ans = i;
			} tem = Math.abs(A - tmp) tem Math.abs(A - tmp) Math.abs Math A - tmp A tmp ans = i ans i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		double T = sc.nextDouble();
		double A = sc.nextDouble();
		long ans = 1;
		double H = sc.nextDouble();
		double tmp = T - H * 0.006;
		double tem = Math.abs(A - tmp);
		for(long i = 2; i < N + 1; i++) {
			H = sc.nextDouble();
			tmp = T - H * 0.006;
			if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			}
		}
		System.out.println(ans);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		double T = sc.nextDouble();
		double A = sc.nextDouble();
		long ans = 1;
		double H = sc.nextDouble();
		double tmp = T - H * 0.006;
		double tem = Math.abs(A - tmp);
		for(long i = 2; i < N + 1; i++) {
			H = sc.nextDouble();
			tmp = T - H * 0.006;
			if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			}
		}
		System.out.println(ans);

	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		double T = sc.nextDouble();
		double A = sc.nextDouble();
		long ans = 1;
		double H = sc.nextDouble();
		double tmp = T - H * 0.006;
		double tem = Math.abs(A - tmp);
		for(long i = 2; i < N + 1; i++) {
			H = sc.nextDouble();
			tmp = T - H * 0.006;
			if(tem > Math.abs(A - tmp)) {
				tem = Math.abs(A - tmp);
				ans = i;
			}
		}
		System.out.println(ans);

	}

}
