import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int qty = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double ts[] = new double[qty];
		for(int i = 0; i < qty; i ++) {
			ts[i] = t - sc.nextInt() * 0.006;
		}
		double best = Math.abs(ts[0] - a);
		int index = 0;
		for(int i = 0; i < qty; i ++) {
			if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			}
		}
		System.out.println(index + 1);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int qty = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double ts[] = new double[qty];
		for(int i = 0; i < qty; i ++) {
			ts[i] = t - sc.nextInt() * 0.006;
		}
		double best = Math.abs(ts[0] - a);
		int index = 0;
		for(int i = 0; i < qty; i ++) {
			if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			}
		}
		System.out.println(index + 1);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int qty = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double ts[] = new double[qty];
		for(int i = 0; i < qty; i ++) {
			ts[i] = t - sc.nextInt() * 0.006;
		}
		double best = Math.abs(ts[0] - a);
		int index = 0;
		for(int i = 0; i < qty; i ++) {
			if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			}
		}
		System.out.println(index + 1);
	} main {
		Scanner sc = new Scanner(System.in);
		int qty = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double ts[] = new double[qty];
		for(int i = 0; i < qty; i ++) {
			ts[i] = t - sc.nextInt() * 0.006;
		}
		double best = Math.abs(ts[0] - a);
		int index = 0;
		for(int i = 0; i < qty; i ++) {
			if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			}
		}
		System.out.println(index + 1);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int qty = sc.nextInt(); qty 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 ts[] = new double[qty]; ts new double[qty] qty for(int i = 0; i < qty; i ++) {
			ts[i] = t - sc.nextInt() * 0.006;
		} int i = 0; int i = 0; i 0 i < qty i qty i ++ i ++ i {
			ts[i] = t - sc.nextInt() * 0.006;
		} {
			ts[i] = t - sc.nextInt() * 0.006;
		} ts[i] = t - sc.nextInt() * 0.006 ts[i] ts i t - sc.nextInt() * 0.006 t sc.nextInt() * 0.006 sc.nextInt() sc.nextInt sc 0.006 double best = Math.abs(ts[0] - a); best Math.abs(ts[0] - a) Math.abs Math ts[0] - a ts[0] ts 0 a int index = 0; index 0 for(int i = 0; i < qty; i ++) {
			if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			}
		} int i = 0; int i = 0; i 0 i < qty i qty i ++ i ++ i {
			if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			}
		} {
			if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			}
		} if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			} Math.abs(ts[i] - a) < best Math.abs(ts[i] - a) Math.abs Math ts[i] - a ts[i] ts i a best {
				best = Math.abs(ts[i] - a);
				index = i;
			} best = Math.abs(ts[i] - a) best Math.abs(ts[i] - a) Math.abs Math ts[i] - a ts[i] ts i a index = i index i System.out.println(index + 1) System.out.println System.out System System.out index + 1 index 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int qty = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double ts[] = new double[qty];
		for(int i = 0; i < qty; i ++) {
			ts[i] = t - sc.nextInt() * 0.006;
		}
		double best = Math.abs(ts[0] - a);
		int index = 0;
		for(int i = 0; i < qty; i ++) {
			if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			}
		}
		System.out.println(index + 1);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int qty = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double ts[] = new double[qty];
		for(int i = 0; i < qty; i ++) {
			ts[i] = t - sc.nextInt() * 0.006;
		}
		double best = Math.abs(ts[0] - a);
		int index = 0;
		for(int i = 0; i < qty; i ++) {
			if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			}
		}
		System.out.println(index + 1);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int qty = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double ts[] = new double[qty];
		for(int i = 0; i < qty; i ++) {
			ts[i] = t - sc.nextInt() * 0.006;
		}
		double best = Math.abs(ts[0] - a);
		int index = 0;
		for(int i = 0; i < qty; i ++) {
			if(Math.abs(ts[i] - a) < best) {
				best = Math.abs(ts[i] - a);
				index = i;
			}
		}
		System.out.println(index + 1);
	}
}