import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] ta = convInt(sc.nextLine().split(" "));
		int t = ta[0], a = ta[1];
		int[] hA = convInt(sc.nextLine().split(" "));
		int result = 0;
		double tmp = Double.MAX_VALUE;
		for (int i = 0; i < hA.length; i++) {
			double ave = t - hA[i] * 0.006;
			double diff = Math.abs(a - ave);
			if (diff < tmp) {
				tmp = diff;
				result = i;
			}
		}
		System.out.println(++result);
	}

	private static int[] convInt(String[] args) {
		int len = args.length;
		int[] intA = new int[len];
		for (int i = 0; i < len; i++) {
			intA[i] = Integer.parseInt(args[i]);
		}
		return intA;
	}
} 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.nextLine());
		int[] ta = convInt(sc.nextLine().split(" "));
		int t = ta[0], a = ta[1];
		int[] hA = convInt(sc.nextLine().split(" "));
		int result = 0;
		double tmp = Double.MAX_VALUE;
		for (int i = 0; i < hA.length; i++) {
			double ave = t - hA[i] * 0.006;
			double diff = Math.abs(a - ave);
			if (diff < tmp) {
				tmp = diff;
				result = i;
			}
		}
		System.out.println(++result);
	}

	private static int[] convInt(String[] args) {
		int len = args.length;
		int[] intA = new int[len];
		for (int i = 0; i < len; i++) {
			intA[i] = Integer.parseInt(args[i]);
		}
		return intA;
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] ta = convInt(sc.nextLine().split(" "));
		int t = ta[0], a = ta[1];
		int[] hA = convInt(sc.nextLine().split(" "));
		int result = 0;
		double tmp = Double.MAX_VALUE;
		for (int i = 0; i < hA.length; i++) {
			double ave = t - hA[i] * 0.006;
			double diff = Math.abs(a - ave);
			if (diff < tmp) {
				tmp = diff;
				result = i;
			}
		}
		System.out.println(++result);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] ta = convInt(sc.nextLine().split(" "));
		int t = ta[0], a = ta[1];
		int[] hA = convInt(sc.nextLine().split(" "));
		int result = 0;
		double tmp = Double.MAX_VALUE;
		for (int i = 0; i < hA.length; i++) {
			double ave = t - hA[i] * 0.006;
			double diff = Math.abs(a - ave);
			if (diff < tmp) {
				tmp = diff;
				result = i;
			}
		}
		System.out.println(++result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int[] ta = convInt(sc.nextLine().split(" ")); ta convInt(sc.nextLine().split(" ")) convInt sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int t = ta[0] t ta[0] ta 0 a = ta[1]; a ta[1] ta 1 int[] hA = convInt(sc.nextLine().split(" ")); hA convInt(sc.nextLine().split(" ")) convInt sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int result = 0; result 0 double tmp = Double.MAX_VALUE; tmp Double.MAX_VALUE Double Double.MAX_VALUE for (int i = 0; i < hA.length; i++) {
			double ave = t - hA[i] * 0.006;
			double diff = Math.abs(a - ave);
			if (diff < tmp) {
				tmp = diff;
				result = i;
			}
		} int i = 0; int i = 0; i 0 i < hA.length i hA.length hA hA.length i++ i++ i {
			double ave = t - hA[i] * 0.006;
			double diff = Math.abs(a - ave);
			if (diff < tmp) {
				tmp = diff;
				result = i;
			}
		} {
			double ave = t - hA[i] * 0.006;
			double diff = Math.abs(a - ave);
			if (diff < tmp) {
				tmp = diff;
				result = i;
			}
		} double ave = t - hA[i] * 0.006; ave t - hA[i] * 0.006 t hA[i] * 0.006 hA[i] hA i 0.006 double diff = Math.abs(a - ave); diff Math.abs(a - ave) Math.abs Math a - ave a ave if (diff < tmp) {
				tmp = diff;
				result = i;
			} diff < tmp diff tmp {
				tmp = diff;
				result = i;
			} tmp = diff tmp diff result = i result i System.out.println(++result) System.out.println System.out System System.out ++result result String[] args args private static int[] convInt(String[] args) {
		int len = args.length;
		int[] intA = new int[len];
		for (int i = 0; i < len; i++) {
			intA[i] = Integer.parseInt(args[i]);
		}
		return intA;
	} convInt {
		int len = args.length;
		int[] intA = new int[len];
		for (int i = 0; i < len; i++) {
			intA[i] = Integer.parseInt(args[i]);
		}
		return intA;
	} int len = args.length; len args.length args args.length int[] intA = new int[len]; intA new int[len] len for (int i = 0; i < len; i++) {
			intA[i] = Integer.parseInt(args[i]);
		} int i = 0; int i = 0; i 0 i < len i len i++ i++ i {
			intA[i] = Integer.parseInt(args[i]);
		} {
			intA[i] = Integer.parseInt(args[i]);
		} intA[i] = Integer.parseInt(args[i]) intA[i] intA i Integer.parseInt(args[i]) Integer.parseInt Integer args[i] args i return intA; intA String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] ta = convInt(sc.nextLine().split(" "));
		int t = ta[0], a = ta[1];
		int[] hA = convInt(sc.nextLine().split(" "));
		int result = 0;
		double tmp = Double.MAX_VALUE;
		for (int i = 0; i < hA.length; i++) {
			double ave = t - hA[i] * 0.006;
			double diff = Math.abs(a - ave);
			if (diff < tmp) {
				tmp = diff;
				result = i;
			}
		}
		System.out.println(++result);
	}

	private static int[] convInt(String[] args) {
		int len = args.length;
		int[] intA = new int[len];
		for (int i = 0; i < len; i++) {
			intA[i] = Integer.parseInt(args[i]);
		}
		return intA;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] ta = convInt(sc.nextLine().split(" "));
		int t = ta[0], a = ta[1];
		int[] hA = convInt(sc.nextLine().split(" "));
		int result = 0;
		double tmp = Double.MAX_VALUE;
		for (int i = 0; i < hA.length; i++) {
			double ave = t - hA[i] * 0.006;
			double diff = Math.abs(a - ave);
			if (diff < tmp) {
				tmp = diff;
				result = i;
			}
		}
		System.out.println(++result);
	}

	private static int[] convInt(String[] args) {
		int len = args.length;
		int[] intA = new int[len];
		for (int i = 0; i < len; i++) {
			intA[i] = Integer.parseInt(args[i]);
		}
		return intA;
	}
} 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.nextLine());
		int[] ta = convInt(sc.nextLine().split(" "));
		int t = ta[0], a = ta[1];
		int[] hA = convInt(sc.nextLine().split(" "));
		int result = 0;
		double tmp = Double.MAX_VALUE;
		for (int i = 0; i < hA.length; i++) {
			double ave = t - hA[i] * 0.006;
			double diff = Math.abs(a - ave);
			if (diff < tmp) {
				tmp = diff;
				result = i;
			}
		}
		System.out.println(++result);
	}

	private static int[] convInt(String[] args) {
		int len = args.length;
		int[] intA = new int[len];
		for (int i = 0; i < len; i++) {
			intA[i] = Integer.parseInt(args[i]);
		}
		return intA;
	}
}