import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		double[] candidates = new double[n];

		sc.nextLine();
		int t = sc.nextInt();
		int a = sc.nextInt();

		sc.nextLine();
		for (int i = 0; i < n; i++) {
			candidates[i] = t - (sc.nextInt() * 0.006);
		}

		int index = 0;
		int ans = 0;
		double diff = 9999;
		for (double candidate : candidates) {

			if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			}
			index++;
		}

		System.out.println(ans);

	}

} 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();

		double[] candidates = new double[n];

		sc.nextLine();
		int t = sc.nextInt();
		int a = sc.nextInt();

		sc.nextLine();
		for (int i = 0; i < n; i++) {
			candidates[i] = t - (sc.nextInt() * 0.006);
		}

		int index = 0;
		int ans = 0;
		double diff = 9999;
		for (double candidate : candidates) {

			if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			}
			index++;
		}

		System.out.println(ans);

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		double[] candidates = new double[n];

		sc.nextLine();
		int t = sc.nextInt();
		int a = sc.nextInt();

		sc.nextLine();
		for (int i = 0; i < n; i++) {
			candidates[i] = t - (sc.nextInt() * 0.006);
		}

		int index = 0;
		int ans = 0;
		double diff = 9999;
		for (double candidate : candidates) {

			if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			}
			index++;
		}

		System.out.println(ans);

	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		double[] candidates = new double[n];

		sc.nextLine();
		int t = sc.nextInt();
		int a = sc.nextInt();

		sc.nextLine();
		for (int i = 0; i < n; i++) {
			candidates[i] = t - (sc.nextInt() * 0.006);
		}

		int index = 0;
		int ans = 0;
		double diff = 9999;
		for (double candidate : candidates) {

			if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			}
			index++;
		}

		System.out.println(ans);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double[] candidates = new double[n]; candidates new double[n] n sc.nextLine() sc.nextLine sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc for (int i = 0; i < n; i++) {
			candidates[i] = t - (sc.nextInt() * 0.006);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			candidates[i] = t - (sc.nextInt() * 0.006);
		} {
			candidates[i] = t - (sc.nextInt() * 0.006);
		} candidates[i] = t - (sc.nextInt() * 0.006) candidates[i] candidates i t - (sc.nextInt() * 0.006) t (sc.nextInt() * 0.006) sc.nextInt() sc.nextInt sc 0.006 int index = 0; index 0 int ans = 0; ans 0 double diff = 9999; diff 9999 for (double candidate : candidates) {

			if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			}
			index++;
		} double candidate candidates {

			if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			}
			index++;
		} {

			if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			}
			index++;
		} if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			} ((double) a - candidate) < 0 ((double) a - candidate) (double) a candidate 0 {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				} (candidate - (double) a) < diff (candidate - (double) a) candidate (double) a diff {
					diff = (candidate - (double) a);
					ans = index + 1;
				} diff = (candidate - (double) a) diff (candidate - (double) a) candidate (double) a ans = index + 1 ans index + 1 index 1 {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			} if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				} ((double) a - candidate) < diff ((double) a - candidate) (double) a candidate diff {
					diff = ((double) a - candidate);
					ans = index + 1;
				} diff = ((double) a - candidate) diff ((double) a - candidate) (double) a candidate ans = index + 1 ans index + 1 index 1 index++ index System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		double[] candidates = new double[n];

		sc.nextLine();
		int t = sc.nextInt();
		int a = sc.nextInt();

		sc.nextLine();
		for (int i = 0; i < n; i++) {
			candidates[i] = t - (sc.nextInt() * 0.006);
		}

		int index = 0;
		int ans = 0;
		double diff = 9999;
		for (double candidate : candidates) {

			if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			}
			index++;
		}

		System.out.println(ans);

	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		double[] candidates = new double[n];

		sc.nextLine();
		int t = sc.nextInt();
		int a = sc.nextInt();

		sc.nextLine();
		for (int i = 0; i < n; i++) {
			candidates[i] = t - (sc.nextInt() * 0.006);
		}

		int index = 0;
		int ans = 0;
		double diff = 9999;
		for (double candidate : candidates) {

			if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			}
			index++;
		}

		System.out.println(ans);

	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		double[] candidates = new double[n];

		sc.nextLine();
		int t = sc.nextInt();
		int a = sc.nextInt();

		sc.nextLine();
		for (int i = 0; i < n; i++) {
			candidates[i] = t - (sc.nextInt() * 0.006);
		}

		int index = 0;
		int ans = 0;
		double diff = 9999;
		for (double candidate : candidates) {

			if (((double) a - candidate) < 0) {
				if ((candidate - (double) a) < diff) {
					diff = (candidate - (double) a);
					ans = index + 1;
				}
			} else {
				if (((double) a - candidate) < diff) {
					diff = ((double) a - candidate);
					ans = index + 1;
				}
			}
			index++;
		}

		System.out.println(ans);

	}

}
