import java.util.Scanner;

public class Main {
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		int[] h = new int[n];
		double[] x = new double[n];
		for(int i = 0; i < n; i++) {
			h[i] = sc.nextInt();
			x[i] = t-h[i]*0.006;
		}
		System.out.println(palace(x,a));

	}

	public static int palace(double[] x, int a) {
		double tmp = Math.abs(a - x[0]);
		int tmp2 = 1;
		for(int i = 1; i < x.length; i++) {
			if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			}
		}
		return tmp2;
	}
} import java.util.Scanner; Scanner java.util public class Main {
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		int[] h = new int[n];
		double[] x = new double[n];
		for(int i = 0; i < n; i++) {
			h[i] = sc.nextInt();
			x[i] = t-h[i]*0.006;
		}
		System.out.println(palace(x,a));

	}

	public static int palace(double[] x, int a) {
		double tmp = Math.abs(a - x[0]);
		int tmp2 = 1;
		for(int i = 1; i < x.length; i++) {
			if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			}
		}
		return tmp2;
	}
} Main private static Scanner sc; sc public static void main(String[] args) {
		sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		int[] h = new int[n];
		double[] x = new double[n];
		for(int i = 0; i < n; i++) {
			h[i] = sc.nextInt();
			x[i] = t-h[i]*0.006;
		}
		System.out.println(palace(x,a));

	} main {
		sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		int[] h = new int[n];
		double[] x = new double[n];
		for(int i = 0; i < n; i++) {
			h[i] = sc.nextInt();
			x[i] = t-h[i]*0.006;
		}
		System.out.println(palace(x,a));

	} 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 int[] h = new int[n]; h new int[n] n double[] x = new double[n]; x new double[n] n for(int i = 0; i < n; i++) {
			h[i] = sc.nextInt();
			x[i] = t-h[i]*0.006;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			h[i] = sc.nextInt();
			x[i] = t-h[i]*0.006;
		} {
			h[i] = sc.nextInt();
			x[i] = t-h[i]*0.006;
		} h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc x[i] = t-h[i]*0.006 x[i] x i t-h[i]*0.006 t h[i]*0.006 h[i] h i 0.006 System.out.println(palace(x,a)) System.out.println System.out System System.out palace(x,a) palace x a String[] args args public static int palace(double[] x, int a) {
		double tmp = Math.abs(a - x[0]);
		int tmp2 = 1;
		for(int i = 1; i < x.length; i++) {
			if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			}
		}
		return tmp2;
	} palace {
		double tmp = Math.abs(a - x[0]);
		int tmp2 = 1;
		for(int i = 1; i < x.length; i++) {
			if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			}
		}
		return tmp2;
	} double tmp = Math.abs(a - x[0]); tmp Math.abs(a - x[0]) Math.abs Math a - x[0] a x[0] x 0 int tmp2 = 1; tmp2 1 for(int i = 1; i < x.length; i++) {
			if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			}
		} int i = 1; int i = 1; i 1 i < x.length i x.length x x.length i++ i++ i {
			if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			}
		} {
			if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			}
		} if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			} Math.abs(a - x[i]) < tmp Math.abs(a - x[i]) Math.abs Math a - x[i] a x[i] x i tmp {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			} tmp = Math.abs(a - x[i]) tmp Math.abs(a - x[i]) Math.abs Math a - x[i] a x[i] x i tmp2 = i+1 tmp2 i+1 i 1 return tmp2; tmp2 double[] x x int a a public class Main {
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		int[] h = new int[n];
		double[] x = new double[n];
		for(int i = 0; i < n; i++) {
			h[i] = sc.nextInt();
			x[i] = t-h[i]*0.006;
		}
		System.out.println(palace(x,a));

	}

	public static int palace(double[] x, int a) {
		double tmp = Math.abs(a - x[0]);
		int tmp2 = 1;
		for(int i = 1; i < x.length; i++) {
			if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			}
		}
		return tmp2;
	}
} public class Main {
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		int[] h = new int[n];
		double[] x = new double[n];
		for(int i = 0; i < n; i++) {
			h[i] = sc.nextInt();
			x[i] = t-h[i]*0.006;
		}
		System.out.println(palace(x,a));

	}

	public static int palace(double[] x, int a) {
		double tmp = Math.abs(a - x[0]);
		int tmp2 = 1;
		for(int i = 1; i < x.length; i++) {
			if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			}
		}
		return tmp2;
	}
} Main
import java.util.Scanner;

public class Main {
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		int[] h = new int[n];
		double[] x = new double[n];
		for(int i = 0; i < n; i++) {
			h[i] = sc.nextInt();
			x[i] = t-h[i]*0.006;
		}
		System.out.println(palace(x,a));

	}

	public static int palace(double[] x, int a) {
		double tmp = Math.abs(a - x[0]);
		int tmp2 = 1;
		for(int i = 1; i < x.length; i++) {
			if(Math.abs(a - x[i]) < tmp) {
				tmp = Math.abs(a - x[i]);
				tmp2 = i+1;
			}
		}
		return tmp2;
	}
}