import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		int hAns = n-1;
		double ans =Math.abs(a - h[n-1]);
		for (int i = 0; i <n ;i++) {
			double temp =Math.abs( a - (t - (h[i]*0.006)));
			if (ans > temp) {
				ans =temp;
				hAns = i;
			}
		}
		System.out.println(hAns + 1);
	}
} 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.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		int hAns = n-1;
		double ans =Math.abs(a - h[n-1]);
		for (int i = 0; i <n ;i++) {
			double temp =Math.abs( a - (t - (h[i]*0.006)));
			if (ans > temp) {
				ans =temp;
				hAns = i;
			}
		}
		System.out.println(hAns + 1);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		int hAns = n-1;
		double ans =Math.abs(a - h[n-1]);
		for (int i = 0; i <n ;i++) {
			double temp =Math.abs( a - (t - (h[i]*0.006)));
			if (ans > temp) {
				ans =temp;
				hAns = i;
			}
		}
		System.out.println(hAns + 1);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		int hAns = n-1;
		double ans =Math.abs(a - h[n-1]);
		for (int i = 0; i <n ;i++) {
			double temp =Math.abs( a - (t - (h[i]*0.006)));
			if (ans > temp) {
				ans =temp;
				hAns = i;
			}
		}
		System.out.println(hAns + 1);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int t = Integer.parseInt(sc.next()); t Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] h = new int[n]; h new int[n] n for (int i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			h[i] = Integer.parseInt(sc.next());
		} {
			h[i] = Integer.parseInt(sc.next());
		} h[i] = Integer.parseInt(sc.next()) h[i] h i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int hAns = n-1; hAns n-1 n 1 double ans =Math.abs(a - h[n-1]); ans Math.abs(a - h[n-1]) Math.abs Math a - h[n-1] a h[n-1] h n-1 n 1 for (int i = 0; i <n ;i++) {
			double temp =Math.abs( a - (t - (h[i]*0.006)));
			if (ans > temp) {
				ans =temp;
				hAns = i;
			}
		} int i = 0; int i = 0; i 0 i <n i n i++ i++ i {
			double temp =Math.abs( a - (t - (h[i]*0.006)));
			if (ans > temp) {
				ans =temp;
				hAns = i;
			}
		} {
			double temp =Math.abs( a - (t - (h[i]*0.006)));
			if (ans > temp) {
				ans =temp;
				hAns = i;
			}
		} double temp =Math.abs( a - (t - (h[i]*0.006))); temp 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 (ans > temp) {
				ans =temp;
				hAns = i;
			} ans > temp ans temp {
				ans =temp;
				hAns = i;
			} ans =temp ans temp hAns = i hAns i System.out.println(hAns + 1) System.out.println System.out System System.out hAns + 1 hAns 1 String[] args args public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		int hAns = n-1;
		double ans =Math.abs(a - h[n-1]);
		for (int i = 0; i <n ;i++) {
			double temp =Math.abs( a - (t - (h[i]*0.006)));
			if (ans > temp) {
				ans =temp;
				hAns = i;
			}
		}
		System.out.println(hAns + 1);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		int hAns = n-1;
		double ans =Math.abs(a - h[n-1]);
		for (int i = 0; i <n ;i++) {
			double temp =Math.abs( a - (t - (h[i]*0.006)));
			if (ans > temp) {
				ans =temp;
				hAns = i;
			}
		}
		System.out.println(hAns + 1);
	}
} 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.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		int hAns = n-1;
		double ans =Math.abs(a - h[n-1]);
		for (int i = 0; i <n ;i++) {
			double temp =Math.abs( a - (t - (h[i]*0.006)));
			if (ans > temp) {
				ans =temp;
				hAns = i;
			}
		}
		System.out.println(hAns + 1);
	}
}