import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int answer = 0;
		double answertempdiff = Integer.MAX_VALUE;
		for(int i =1;i <= n;i++) {
			double temp = t - (sc.nextDouble() * 0.006);
			if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			}
		}
		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();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int answer = 0;
		double answertempdiff = Integer.MAX_VALUE;
		for(int i =1;i <= n;i++) {
			double temp = t - (sc.nextDouble() * 0.006);
			if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			}
		}
		System.out.println(answer);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int answer = 0;
		double answertempdiff = Integer.MAX_VALUE;
		for(int i =1;i <= n;i++) {
			double temp = t - (sc.nextDouble() * 0.006);
			if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			}
		}
		System.out.println(answer);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int answer = 0;
		double answertempdiff = Integer.MAX_VALUE;
		for(int i =1;i <= n;i++) {
			double temp = t - (sc.nextDouble() * 0.006);
			if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			}
		}
		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 double t = sc.nextDouble(); t sc.nextDouble() sc.nextDouble sc double a = sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc int answer = 0; answer 0 double answertempdiff = Integer.MAX_VALUE; answertempdiff Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i =1;i <= n;i++) {
			double temp = t - (sc.nextDouble() * 0.006);
			if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			}
		} int i =1; int i =1; i 1 i <= n i n i++ i++ i {
			double temp = t - (sc.nextDouble() * 0.006);
			if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			}
		} {
			double temp = t - (sc.nextDouble() * 0.006);
			if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			}
		} double temp = t - (sc.nextDouble() * 0.006); temp t - (sc.nextDouble() * 0.006) t (sc.nextDouble() * 0.006) sc.nextDouble() sc.nextDouble sc 0.006 if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			} Math.abs(a - temp) < answertempdiff Math.abs(a - temp) Math.abs Math a - temp a temp answertempdiff {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			} answer = i answer i answertempdiff = Math.abs(a - temp) answertempdiff Math.abs(a - temp) Math.abs Math a - temp a temp 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();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int answer = 0;
		double answertempdiff = Integer.MAX_VALUE;
		for(int i =1;i <= n;i++) {
			double temp = t - (sc.nextDouble() * 0.006);
			if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			}
		}
		System.out.println(answer);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int answer = 0;
		double answertempdiff = Integer.MAX_VALUE;
		for(int i =1;i <= n;i++) {
			double temp = t - (sc.nextDouble() * 0.006);
			if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			}
		}
		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();
		double t = sc.nextDouble();
		double a = sc.nextDouble();
		int answer = 0;
		double answertempdiff = Integer.MAX_VALUE;
		for(int i =1;i <= n;i++) {
			double temp = t - (sc.nextDouble() * 0.006);
			if(Math.abs(a - temp) < answertempdiff) {
				answer = i;
				answertempdiff = Math.abs(a - temp);
			}
		}
		System.out.println(answer);
	}
}