import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] H = new int[N];
		int T = sc.nextInt();
		int A = sc.nextInt();
		int difference = Integer.MAX_VALUE;
		int index = 0;
		for (int i = 0; i < H.length; i++) {
			int input = sc.nextInt();
			int ave = T * 1000 - input * 6;
			H[i] = Math.abs(A * 1000 - ave);
			if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			}
		}
		System.out.println(index);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] H = new int[N];
		int T = sc.nextInt();
		int A = sc.nextInt();
		int difference = Integer.MAX_VALUE;
		int index = 0;
		for (int i = 0; i < H.length; i++) {
			int input = sc.nextInt();
			int ave = T * 1000 - input * 6;
			H[i] = Math.abs(A * 1000 - ave);
			if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			}
		}
		System.out.println(index);
		sc.close();
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] H = new int[N];
		int T = sc.nextInt();
		int A = sc.nextInt();
		int difference = Integer.MAX_VALUE;
		int index = 0;
		for (int i = 0; i < H.length; i++) {
			int input = sc.nextInt();
			int ave = T * 1000 - input * 6;
			H[i] = Math.abs(A * 1000 - ave);
			if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			}
		}
		System.out.println(index);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] H = new int[N];
		int T = sc.nextInt();
		int A = sc.nextInt();
		int difference = Integer.MAX_VALUE;
		int index = 0;
		for (int i = 0; i < H.length; i++) {
			int input = sc.nextInt();
			int ave = T * 1000 - input * 6;
			H[i] = Math.abs(A * 1000 - ave);
			if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			}
		}
		System.out.println(index);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] H = new int[N]; H new int[N] N int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int difference = Integer.MAX_VALUE; difference Integer.MAX_VALUE Integer Integer.MAX_VALUE int index = 0; index 0 for (int i = 0; i < H.length; i++) {
			int input = sc.nextInt();
			int ave = T * 1000 - input * 6;
			H[i] = Math.abs(A * 1000 - ave);
			if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			}
		} int i = 0; int i = 0; i 0 i < H.length i H.length H H.length i++ i++ i {
			int input = sc.nextInt();
			int ave = T * 1000 - input * 6;
			H[i] = Math.abs(A * 1000 - ave);
			if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			}
		} {
			int input = sc.nextInt();
			int ave = T * 1000 - input * 6;
			H[i] = Math.abs(A * 1000 - ave);
			if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			}
		} int input = sc.nextInt(); input sc.nextInt() sc.nextInt sc int ave = T * 1000 - input * 6; ave T * 1000 - input * 6 T * 1000 T 1000 input * 6 input 6 H[i] = Math.abs(A * 1000 - ave) H[i] H i Math.abs(A * 1000 - ave) Math.abs Math A * 1000 - ave A * 1000 A 1000 ave if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			} difference > H[i] difference H[i] H i {
				difference = H[i];
				index = i + 1;
			} difference = H[i] difference H[i] H i index = i + 1 index i + 1 i 1 System.out.println(index) System.out.println System.out System System.out index sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] H = new int[N];
		int T = sc.nextInt();
		int A = sc.nextInt();
		int difference = Integer.MAX_VALUE;
		int index = 0;
		for (int i = 0; i < H.length; i++) {
			int input = sc.nextInt();
			int ave = T * 1000 - input * 6;
			H[i] = Math.abs(A * 1000 - ave);
			if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			}
		}
		System.out.println(index);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] H = new int[N];
		int T = sc.nextInt();
		int A = sc.nextInt();
		int difference = Integer.MAX_VALUE;
		int index = 0;
		for (int i = 0; i < H.length; i++) {
			int input = sc.nextInt();
			int ave = T * 1000 - input * 6;
			H[i] = Math.abs(A * 1000 - ave);
			if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			}
		}
		System.out.println(index);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] H = new int[N];
		int T = sc.nextInt();
		int A = sc.nextInt();
		int difference = Integer.MAX_VALUE;
		int index = 0;
		for (int i = 0; i < H.length; i++) {
			int input = sc.nextInt();
			int ave = T * 1000 - input * 6;
			H[i] = Math.abs(A * 1000 - ave);
			if (difference > H[i]) {
				difference = H[i];
				index = i + 1;
			}
		}
		System.out.println(index);
		sc.close();
	}
}