import java.util.Scanner;
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();
		int[] H = new int[N];

		for(int i=0;i<N;i++) {
			H[i] = sc.nextInt();
		}

		double diff = 100001;
		int index = -1;
		for(int i=0;i<H.length;i++) {
			double d = Math.abs(A- (T - H[i]*0.006));
			if(diff >d) {
				diff = d;
				index = i;
			}
		}
//	    int ans = ;
	    System.out.println(index+1);
	    sc.close();
	}



} import java.util.Scanner; Scanner 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();
		int[] H = new int[N];

		for(int i=0;i<N;i++) {
			H[i] = sc.nextInt();
		}

		double diff = 100001;
		int index = -1;
		for(int i=0;i<H.length;i++) {
			double d = Math.abs(A- (T - H[i]*0.006));
			if(diff >d) {
				diff = d;
				index = i;
			}
		}
//	    int ans = ;
	    System.out.println(index+1);
	    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();
		int[] H = new int[N];

		for(int i=0;i<N;i++) {
			H[i] = sc.nextInt();
		}

		double diff = 100001;
		int index = -1;
		for(int i=0;i<H.length;i++) {
			double d = Math.abs(A- (T - H[i]*0.006));
			if(diff >d) {
				diff = d;
				index = i;
			}
		}
//	    int ans = ;
	    System.out.println(index+1);
	    sc.close();
	} main {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		int[] H = new int[N];

		for(int i=0;i<N;i++) {
			H[i] = sc.nextInt();
		}

		double diff = 100001;
		int index = -1;
		for(int i=0;i<H.length;i++) {
			double d = Math.abs(A- (T - H[i]*0.006));
			if(diff >d) {
				diff = d;
				index = i;
			}
		}
//	    int ans = ;
	    System.out.println(index+1);
	    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 int[] H = new int[N]; H new int[N] N for(int i=0;i<N;i++) {
			H[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			H[i] = sc.nextInt();
		} {
			H[i] = sc.nextInt();
		} H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc double diff = 100001; diff 100001 int index = -1; index -1 1 for(int i=0;i<H.length;i++) {
			double d = Math.abs(A- (T - H[i]*0.006));
			if(diff >d) {
				diff = d;
				index = i;
			}
		} int i=0; int i=0; i 0 i<H.length i H.length H H.length i++ i++ i {
			double d = Math.abs(A- (T - H[i]*0.006));
			if(diff >d) {
				diff = d;
				index = i;
			}
		} {
			double d = Math.abs(A- (T - H[i]*0.006));
			if(diff >d) {
				diff = d;
				index = i;
			}
		} double d = Math.abs(A- (T - H[i]*0.006)); d Math.abs(A- (T - H[i]*0.006)) Math.abs Math A- (T - H[i]*0.006) A (T - H[i]*0.006) T H[i]*0.006 H[i] H i 0.006 if(diff >d) {
				diff = d;
				index = i;
			} diff >d diff d {
				diff = d;
				index = i;
			} diff = d diff d index = i index i System.out.println(index+1) System.out.println System.out System System.out index+1 index 1 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();
		int[] H = new int[N];

		for(int i=0;i<N;i++) {
			H[i] = sc.nextInt();
		}

		double diff = 100001;
		int index = -1;
		for(int i=0;i<H.length;i++) {
			double d = Math.abs(A- (T - H[i]*0.006));
			if(diff >d) {
				diff = d;
				index = i;
			}
		}
//	    int ans = ;
	    System.out.println(index+1);
	    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();
		int[] H = new int[N];

		for(int i=0;i<N;i++) {
			H[i] = sc.nextInt();
		}

		double diff = 100001;
		int index = -1;
		for(int i=0;i<H.length;i++) {
			double d = Math.abs(A- (T - H[i]*0.006));
			if(diff >d) {
				diff = d;
				index = i;
			}
		}
//	    int ans = ;
	    System.out.println(index+1);
	    sc.close();
	}



} Main
import java.util.Scanner;
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();
		int[] H = new int[N];

		for(int i=0;i<N;i++) {
			H[i] = sc.nextInt();
		}

		double diff = 100001;
		int index = -1;
		for(int i=0;i<H.length;i++) {
			double d = Math.abs(A- (T - H[i]*0.006));
			if(diff >d) {
				diff = d;
				index = i;
			}
		}
//	    int ans = ;
	    System.out.println(index+1);
	    sc.close();
	}



}
