import java.io.*;
import java.util.Scanner;


public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		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();
		}

		long diff = Long.MAX_VALUE;
		int diffi = 0;
		for (int i = 0; i < n; i++) {
			long tmp = t * 1_000 - h[i] * 6;
			tmp = Math.abs(a * 1000 - tmp);
			
//			pr.println(tmp);
			
			if (tmp < diff) {
				diff = tmp;
				diffi = i;
			}
		}
		
		pr.println(diffi + 1);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);
			
		solve();
			
		pr.close();
		sc.close();
	}

	static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
	}
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		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();
		}

		long diff = Long.MAX_VALUE;
		int diffi = 0;
		for (int i = 0; i < n; i++) {
			long tmp = t * 1_000 - h[i] * 6;
			tmp = Math.abs(a * 1000 - tmp);
			
//			pr.println(tmp);
			
			if (tmp < diff) {
				diff = tmp;
				diffi = i;
			}
		}
		
		pr.println(diffi + 1);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);
			
		solve();
			
		pr.close();
		sc.close();
	}

	static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
	}
} Main private static Scanner sc; sc private static Printer pr; pr private static void solve() {
		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();
		}

		long diff = Long.MAX_VALUE;
		int diffi = 0;
		for (int i = 0; i < n; i++) {
			long tmp = t * 1_000 - h[i] * 6;
			tmp = Math.abs(a * 1000 - tmp);
			
//			pr.println(tmp);
			
			if (tmp < diff) {
				diff = tmp;
				diffi = i;
			}
		}
		
		pr.println(diffi + 1);
	} solve {
		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();
		}

		long diff = Long.MAX_VALUE;
		int diffi = 0;
		for (int i = 0; i < n; i++) {
			long tmp = t * 1_000 - h[i] * 6;
			tmp = Math.abs(a * 1000 - tmp);
			
//			pr.println(tmp);
			
			if (tmp < diff) {
				diff = tmp;
				diffi = i;
			}
		}
		
		pr.println(diffi + 1);
	} 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 long diff = Long.MAX_VALUE; diff Long.MAX_VALUE Long Long.MAX_VALUE int diffi = 0; diffi 0 for (int i = 0; i < n; i++) {
			long tmp = t * 1_000 - h[i] * 6;
			tmp = Math.abs(a * 1000 - tmp);
			
//			pr.println(tmp);
			
			if (tmp < diff) {
				diff = tmp;
				diffi = i;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			long tmp = t * 1_000 - h[i] * 6;
			tmp = Math.abs(a * 1000 - tmp);
			
//			pr.println(tmp);
			
			if (tmp < diff) {
				diff = tmp;
				diffi = i;
			}
		} {
			long tmp = t * 1_000 - h[i] * 6;
			tmp = Math.abs(a * 1000 - tmp);
			
//			pr.println(tmp);
			
			if (tmp < diff) {
				diff = tmp;
				diffi = i;
			}
		} long tmp = t * 1_000 - h[i] * 6; tmp t * 1_000 - h[i] * 6 t * 1_000 t 1_000 h[i] * 6 h[i] h i 6 tmp = Math.abs(a * 1000 - tmp) tmp Math.abs(a * 1000 - tmp) Math.abs Math a * 1000 - tmp a * 1000 a 1000 tmp if (tmp < diff) {
				diff = tmp;
				diffi = i;
			} tmp < diff tmp diff {
				diff = tmp;
				diffi = i;
			} diff = tmp diff tmp diffi = i diffi i pr.println(diffi + 1) pr.println pr diffi + 1 diffi 1 // ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);
			
		solve();
			
		pr.close();
		sc.close();
	} main {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);
			
		solve();
			
		pr.close();
		sc.close();
	} sc = new Scanner(System.in) sc new Scanner(System.in) pr = new Printer(System.out) pr new Printer(System.out) solve() solve pr.close() pr.close pr sc.close() sc.close sc String[] args args static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
	} Printer Printer(OutputStream out) {
			super(out);
		} Printer {
			super(out);
		} super(out) super out OutputStream out out PrintWriter public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		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();
		}

		long diff = Long.MAX_VALUE;
		int diffi = 0;
		for (int i = 0; i < n; i++) {
			long tmp = t * 1_000 - h[i] * 6;
			tmp = Math.abs(a * 1000 - tmp);
			
//			pr.println(tmp);
			
			if (tmp < diff) {
				diff = tmp;
				diffi = i;
			}
		}
		
		pr.println(diffi + 1);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);
			
		solve();
			
		pr.close();
		sc.close();
	}

	static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
	}
} public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		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();
		}

		long diff = Long.MAX_VALUE;
		int diffi = 0;
		for (int i = 0; i < n; i++) {
			long tmp = t * 1_000 - h[i] * 6;
			tmp = Math.abs(a * 1000 - tmp);
			
//			pr.println(tmp);
			
			if (tmp < diff) {
				diff = tmp;
				diffi = i;
			}
		}
		
		pr.println(diffi + 1);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);
			
		solve();
			
		pr.close();
		sc.close();
	}

	static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
	}
} Main
import java.io.*;
import java.util.Scanner;


public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		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();
		}

		long diff = Long.MAX_VALUE;
		int diffi = 0;
		for (int i = 0; i < n; i++) {
			long tmp = t * 1_000 - h[i] * 6;
			tmp = Math.abs(a * 1000 - tmp);
			
//			pr.println(tmp);
			
			if (tmp < diff) {
				diff = tmp;
				diffi = i;
			}
		}
		
		pr.println(diffi + 1);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);
			
		solve();
			
		pr.close();
		sc.close();
	}

	static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
	}
}
