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 min=999;

		double ans = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			ans = Math.abs((T - sc.nextInt() * 0.006) - A);

			if (ans < 0) {
				ans = -ans;
			}
			if (min > ans) {
				min = ans;
				cnt = i;
			}
		}

		System.out.println(cnt + 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 = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();

		double min=999;

		double ans = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			ans = Math.abs((T - sc.nextInt() * 0.006) - A);

			if (ans < 0) {
				ans = -ans;
			}
			if (min > ans) {
				min = ans;
				cnt = i;
			}
		}

		System.out.println(cnt + 1);
	}
} 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 min=999;

		double ans = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			ans = Math.abs((T - sc.nextInt() * 0.006) - A);

			if (ans < 0) {
				ans = -ans;
			}
			if (min > ans) {
				min = ans;
				cnt = i;
			}
		}

		System.out.println(cnt + 1);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();

		double min=999;

		double ans = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			ans = Math.abs((T - sc.nextInt() * 0.006) - A);

			if (ans < 0) {
				ans = -ans;
			}
			if (min > ans) {
				min = ans;
				cnt = i;
			}
		}

		System.out.println(cnt + 1);
	} 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 min=999; min 999 double ans = 0; ans 0 int cnt = 0; cnt 0 for (int i = 0; i < N; i++) {
			ans = Math.abs((T - sc.nextInt() * 0.006) - A);

			if (ans < 0) {
				ans = -ans;
			}
			if (min > ans) {
				min = ans;
				cnt = i;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			ans = Math.abs((T - sc.nextInt() * 0.006) - A);

			if (ans < 0) {
				ans = -ans;
			}
			if (min > ans) {
				min = ans;
				cnt = i;
			}
		} {
			ans = Math.abs((T - sc.nextInt() * 0.006) - A);

			if (ans < 0) {
				ans = -ans;
			}
			if (min > ans) {
				min = ans;
				cnt = i;
			}
		} ans = Math.abs((T - sc.nextInt() * 0.006) - A) ans Math.abs((T - sc.nextInt() * 0.006) - A) Math.abs Math (T - sc.nextInt() * 0.006) - A (T - sc.nextInt() * 0.006) T sc.nextInt() * 0.006 sc.nextInt() sc.nextInt sc 0.006 A if (ans < 0) {
				ans = -ans;
			} ans < 0 ans 0 {
				ans = -ans;
			} ans = -ans ans -ans ans if (min > ans) {
				min = ans;
				cnt = i;
			} min > ans min ans {
				min = ans;
				cnt = i;
			} min = ans min ans cnt = i cnt i System.out.println(cnt + 1) System.out.println System.out System System.out cnt + 1 cnt 1 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 min=999;

		double ans = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			ans = Math.abs((T - sc.nextInt() * 0.006) - A);

			if (ans < 0) {
				ans = -ans;
			}
			if (min > ans) {
				min = ans;
				cnt = i;
			}
		}

		System.out.println(cnt + 1);
	}
} 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 min=999;

		double ans = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			ans = Math.abs((T - sc.nextInt() * 0.006) - A);

			if (ans < 0) {
				ans = -ans;
			}
			if (min > ans) {
				min = ans;
				cnt = i;
			}
		}

		System.out.println(cnt + 1);
	}
} 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 min=999;

		double ans = 0;
		int cnt = 0;

		for (int i = 0; i < N; i++) {
			ans = Math.abs((T - sc.nextInt() * 0.006) - A);

			if (ans < 0) {
				ans = -ans;
			}
			if (min > ans) {
				min = ans;
				cnt = i;
			}
		}

		System.out.println(cnt + 1);
	}
}
