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();
		int H = 0;
		double maxTemperature = Double.MAX_VALUE;
		int answer = 0;

		for (int i = 0 ; i < N; i++) {
			H = sc.nextInt();
			if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			}
		}

		System.out.println(answer);
	}
} 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();
		int H = 0;
		double maxTemperature = Double.MAX_VALUE;
		int answer = 0;

		for (int i = 0 ; i < N; i++) {
			H = sc.nextInt();
			if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			}
		}

		System.out.println(answer);
	}
} 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();
		int H = 0;
		double maxTemperature = Double.MAX_VALUE;
		int answer = 0;

		for (int i = 0 ; i < N; i++) {
			H = sc.nextInt();
			if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			}
		}

		System.out.println(answer);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		int H = 0;
		double maxTemperature = Double.MAX_VALUE;
		int answer = 0;

		for (int i = 0 ; i < N; i++) {
			H = sc.nextInt();
			if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			}
		}

		System.out.println(answer);
	} 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 int H = 0; H 0 double maxTemperature = Double.MAX_VALUE; maxTemperature Double.MAX_VALUE Double Double.MAX_VALUE int answer = 0; answer 0 for (int i = 0 ; i < N; i++) {
			H = sc.nextInt();
			if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			}
		} int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
			H = sc.nextInt();
			if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			}
		} {
			H = sc.nextInt();
			if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			}
		} H = sc.nextInt() H sc.nextInt() sc.nextInt sc if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			} Math.abs(A - (T - H * 0.006)) < maxTemperature 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 maxTemperature {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			} maxTemperature = Math.abs(A - (T - H * 0.006)) maxTemperature 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 answer = i + 1 answer i + 1 i 1 System.out.println(answer) System.out.println System.out System System.out answer 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();
		int H = 0;
		double maxTemperature = Double.MAX_VALUE;
		int answer = 0;

		for (int i = 0 ; i < N; i++) {
			H = sc.nextInt();
			if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			}
		}

		System.out.println(answer);
	}
} 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();
		int H = 0;
		double maxTemperature = Double.MAX_VALUE;
		int answer = 0;

		for (int i = 0 ; i < N; i++) {
			H = sc.nextInt();
			if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			}
		}

		System.out.println(answer);
	}
} 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();
		int H = 0;
		double maxTemperature = Double.MAX_VALUE;
		int answer = 0;

		for (int i = 0 ; i < N; i++) {
			H = sc.nextInt();
			if (Math.abs(A - (T - H * 0.006)) < maxTemperature) {
				maxTemperature = Math.abs(A - (T - H * 0.006));
				answer = i + 1;
			}
		}

		System.out.println(answer);
	}
}
