import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		double min = Double.MAX_VALUE;
		double H[] = new double[N+1];
		int num = 1;
		for(int i = 1;i <= N;i++) {
			H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006)));
			if(min > H[i]) {
				min = H[i];
				num = i;
			}
		}
		System.out.println(num);
		sc.close();
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		double min = Double.MAX_VALUE;
		double H[] = new double[N+1];
		int num = 1;
		for(int i = 1;i <= N;i++) {
			H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006)));
			if(min > H[i]) {
				min = H[i];
				num = i;
			}
		}
		System.out.println(num);
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		double min = Double.MAX_VALUE;
		double H[] = new double[N+1];
		int num = 1;
		for(int i = 1;i <= N;i++) {
			H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006)));
			if(min > H[i]) {
				min = H[i];
				num = i;
			}
		}
		System.out.println(num);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		double min = Double.MAX_VALUE;
		double H[] = new double[N+1];
		int num = 1;
		for(int i = 1;i <= N;i++) {
			H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006)));
			if(min > H[i]) {
				min = H[i];
				num = i;
			}
		}
		System.out.println(num);
		sc.close();
	} Scanner 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 double min = Double.MAX_VALUE; min Double.MAX_VALUE Double Double.MAX_VALUE double H[] = new double[N+1]; H new double[N+1] N+1 N 1 int num = 1; num 1 for(int i = 1;i <= N;i++) {
			H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006)));
			if(min > H[i]) {
				min = H[i];
				num = i;
			}
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006)));
			if(min > H[i]) {
				min = H[i];
				num = i;
			}
		} {
			H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006)));
			if(min > H[i]) {
				min = H[i];
				num = i;
			}
		} H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006))) H[i] H i Math.abs(A - (T - (sc.nextDouble() * 0.006))) Math.abs Math A - (T - (sc.nextDouble() * 0.006)) A (T - (sc.nextDouble() * 0.006)) T (sc.nextDouble() * 0.006) sc.nextDouble() sc.nextDouble sc 0.006 if(min > H[i]) {
				min = H[i];
				num = i;
			} min > H[i] min H[i] H i {
				min = H[i];
				num = i;
			} min = H[i] min H[i] H i num = i num i System.out.println(num) System.out.println System.out System System.out num sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		double min = Double.MAX_VALUE;
		double H[] = new double[N+1];
		int num = 1;
		for(int i = 1;i <= N;i++) {
			H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006)));
			if(min > H[i]) {
				min = H[i];
				num = i;
			}
		}
		System.out.println(num);
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		double min = Double.MAX_VALUE;
		double H[] = new double[N+1];
		int num = 1;
		for(int i = 1;i <= N;i++) {
			H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006)));
			if(min > H[i]) {
				min = H[i];
				num = i;
			}
		}
		System.out.println(num);
		sc.close();
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		double min = Double.MAX_VALUE;
		double H[] = new double[N+1];
		int num = 1;
		for(int i = 1;i <= N;i++) {
			H[i] = Math.abs(A - (T - (sc.nextDouble() * 0.006)));
			if(min > H[i]) {
				min = H[i];
				num = i;
			}
		}
		System.out.println(num);
		sc.close();
	}
}