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();
		double target = (t - a) / 0.006;
		int rtn = 0;
		double currentMin = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int input = sc.nextInt();
			double diff = Math.abs(target - input);
			if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			}
		}
		System.out.println(rtn);
	}

} 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();
		double target = (t - a) / 0.006;
		int rtn = 0;
		double currentMin = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int input = sc.nextInt();
			double diff = Math.abs(target - input);
			if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			}
		}
		System.out.println(rtn);
	}

} 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 target = (t - a) / 0.006;
		int rtn = 0;
		double currentMin = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int input = sc.nextInt();
			double diff = Math.abs(target - input);
			if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			}
		}
		System.out.println(rtn);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double target = (t - a) / 0.006;
		int rtn = 0;
		double currentMin = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int input = sc.nextInt();
			double diff = Math.abs(target - input);
			if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			}
		}
		System.out.println(rtn);
	} 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 target = (t - a) / 0.006; target (t - a) / 0.006 (t - a) t a 0.006 int rtn = 0; rtn 0 double currentMin = Integer.MAX_VALUE; currentMin Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
			int input = sc.nextInt();
			double diff = Math.abs(target - input);
			if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int input = sc.nextInt();
			double diff = Math.abs(target - input);
			if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			}
		} {
			int input = sc.nextInt();
			double diff = Math.abs(target - input);
			if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			}
		} int input = sc.nextInt(); input sc.nextInt() sc.nextInt sc double diff = Math.abs(target - input); diff Math.abs(target - input) Math.abs Math target - input target input if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			} currentMin > diff currentMin diff {
				currentMin = diff;
				rtn = i + 1;
			} currentMin = diff currentMin diff rtn = i + 1 rtn i + 1 i 1 System.out.println(rtn) System.out.println System.out System System.out rtn 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 target = (t - a) / 0.006;
		int rtn = 0;
		double currentMin = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int input = sc.nextInt();
			double diff = Math.abs(target - input);
			if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			}
		}
		System.out.println(rtn);
	}

} 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 target = (t - a) / 0.006;
		int rtn = 0;
		double currentMin = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int input = sc.nextInt();
			double diff = Math.abs(target - input);
			if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			}
		}
		System.out.println(rtn);
	}

} 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();
		double target = (t - a) / 0.006;
		int rtn = 0;
		double currentMin = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int input = sc.nextInt();
			double diff = Math.abs(target - input);
			if (currentMin > diff) {
				currentMin = diff;
				rtn = i + 1;
			}
		}
		System.out.println(rtn);
	}

}
