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 minSub = 1000.0;
		int ans = 0;
		for (int i = 1; i <= n; i++) {
			int h = sc.nextInt();
			double sub = Math.abs(a - (t - h * 0.006));
			if (sub < minSub) {
				minSub = sub;
				ans = i;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} 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 minSub = 1000.0;
		int ans = 0;
		for (int i = 1; i <= n; i++) {
			int h = sc.nextInt();
			double sub = Math.abs(a - (t - h * 0.006));
			if (sub < minSub) {
				minSub = sub;
				ans = i;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} 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 minSub = 1000.0;
		int ans = 0;
		for (int i = 1; i <= n; i++) {
			int h = sc.nextInt();
			double sub = Math.abs(a - (t - h * 0.006));
			if (sub < minSub) {
				minSub = sub;
				ans = i;
			}
		}
		System.out.println(ans);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

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

		double minSub = 1000.0;
		int ans = 0;
		for (int i = 1; i <= n; i++) {
			int h = sc.nextInt();
			double sub = Math.abs(a - (t - h * 0.006));
			if (sub < minSub) {
				minSub = sub;
				ans = i;
			}
		}
		System.out.println(ans);
		sc.close();
	} 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 minSub = 1000.0; minSub 1000.0 int ans = 0; ans 0 for (int i = 1; i <= n; i++) {
			int h = sc.nextInt();
			double sub = Math.abs(a - (t - h * 0.006));
			if (sub < minSub) {
				minSub = sub;
				ans = i;
			}
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			int h = sc.nextInt();
			double sub = Math.abs(a - (t - h * 0.006));
			if (sub < minSub) {
				minSub = sub;
				ans = i;
			}
		} {
			int h = sc.nextInt();
			double sub = Math.abs(a - (t - h * 0.006));
			if (sub < minSub) {
				minSub = sub;
				ans = i;
			}
		} int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc double sub = Math.abs(a - (t - h * 0.006)); sub Math.abs(a - (t - h * 0.006)) Math.abs Math a - (t - h * 0.006) a (t - h * 0.006) t h * 0.006 h 0.006 if (sub < minSub) {
				minSub = sub;
				ans = i;
			} sub < minSub sub minSub {
				minSub = sub;
				ans = i;
			} minSub = sub minSub sub ans = i ans i System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc 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 minSub = 1000.0;
		int ans = 0;
		for (int i = 1; i <= n; i++) {
			int h = sc.nextInt();
			double sub = Math.abs(a - (t - h * 0.006));
			if (sub < minSub) {
				minSub = sub;
				ans = i;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} 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 minSub = 1000.0;
		int ans = 0;
		for (int i = 1; i <= n; i++) {
			int h = sc.nextInt();
			double sub = Math.abs(a - (t - h * 0.006));
			if (sub < minSub) {
				minSub = sub;
				ans = i;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} 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 minSub = 1000.0;
		int ans = 0;
		for (int i = 1; i <= n; i++) {
			int h = sc.nextInt();
			double sub = Math.abs(a - (t - h * 0.006));
			if (sub < minSub) {
				minSub = sub;
				ans = i;
			}
		}
		System.out.println(ans);
		sc.close();
	}
}
