import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner scn = new Scanner(System.in)) {
			final int N = scn.nextInt();
			final int T = scn.nextInt();
			final int A = scn.nextInt();

			double min = Double.MAX_VALUE;
			int ret = -1;
			for (int i = 0; i < N; i++) {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			}
			System.out.println(ret);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try (Scanner scn = new Scanner(System.in)) {
			final int N = scn.nextInt();
			final int T = scn.nextInt();
			final int A = scn.nextInt();

			double min = Double.MAX_VALUE;
			int ret = -1;
			for (int i = 0; i < N; i++) {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			}
			System.out.println(ret);
		}
	}
} Main public static void main(String[] args) {
		try (Scanner scn = new Scanner(System.in)) {
			final int N = scn.nextInt();
			final int T = scn.nextInt();
			final int A = scn.nextInt();

			double min = Double.MAX_VALUE;
			int ret = -1;
			for (int i = 0; i < N; i++) {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			}
			System.out.println(ret);
		}
	} main {
		try (Scanner scn = new Scanner(System.in)) {
			final int N = scn.nextInt();
			final int T = scn.nextInt();
			final int A = scn.nextInt();

			double min = Double.MAX_VALUE;
			int ret = -1;
			for (int i = 0; i < N; i++) {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			}
			System.out.println(ret);
		}
	} try (Scanner scn = new Scanner(System.in)) {
			final int N = scn.nextInt();
			final int T = scn.nextInt();
			final int A = scn.nextInt();

			double min = Double.MAX_VALUE;
			int ret = -1;
			for (int i = 0; i < N; i++) {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			}
			System.out.println(ret);
		} {
			final int N = scn.nextInt();
			final int T = scn.nextInt();
			final int A = scn.nextInt();

			double min = Double.MAX_VALUE;
			int ret = -1;
			for (int i = 0; i < N; i++) {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			}
			System.out.println(ret);
		} Scanner scn = new Scanner(System.in) Scanner scn = new Scanner(System.in) new Scanner(System.in) final int N = scn.nextInt(); N scn.nextInt() scn.nextInt scn final int T = scn.nextInt(); T scn.nextInt() scn.nextInt scn final int A = scn.nextInt(); A scn.nextInt() scn.nextInt scn double min = Double.MAX_VALUE; min Double.MAX_VALUE Double Double.MAX_VALUE int ret = -1; ret -1 1 for (int i = 0; i < N; i++) {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			} {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			} double work = Math.abs(A - (T - scn.nextInt() * 0.006)); work Math.abs(A - (T - scn.nextInt() * 0.006)) Math.abs Math A - (T - scn.nextInt() * 0.006) A (T - scn.nextInt() * 0.006) T scn.nextInt() * 0.006 scn.nextInt() scn.nextInt scn 0.006 if (min > work) {
					min = work;
					ret = i + 1;
				} min > work min work {
					min = work;
					ret = i + 1;
				} min = work min work ret = i + 1 ret i + 1 i 1 System.out.println(ret) System.out.println System.out System System.out ret String[] args args public class Main {
	public static void main(String[] args) {
		try (Scanner scn = new Scanner(System.in)) {
			final int N = scn.nextInt();
			final int T = scn.nextInt();
			final int A = scn.nextInt();

			double min = Double.MAX_VALUE;
			int ret = -1;
			for (int i = 0; i < N; i++) {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			}
			System.out.println(ret);
		}
	}
} public class Main {
	public static void main(String[] args) {
		try (Scanner scn = new Scanner(System.in)) {
			final int N = scn.nextInt();
			final int T = scn.nextInt();
			final int A = scn.nextInt();

			double min = Double.MAX_VALUE;
			int ret = -1;
			for (int i = 0; i < N; i++) {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			}
			System.out.println(ret);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner scn = new Scanner(System.in)) {
			final int N = scn.nextInt();
			final int T = scn.nextInt();
			final int A = scn.nextInt();

			double min = Double.MAX_VALUE;
			int ret = -1;
			for (int i = 0; i < N; i++) {
				double work = Math.abs(A - (T - scn.nextInt() * 0.006));
				if (min > work) {
					min = work;
					ret = i + 1;
				}
			}
			System.out.println(ret);
		}
	}
}
