import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Double diff = Double.MAX_VALUE;
		Integer output = 1001;
		Integer N = new Integer(scanner.next());
		Double T = new Double(scanner.next());
		Double A = new Double(scanner.next());
		ArrayList<Double> input = new ArrayList<Double>();
		for(int i = 0; i < N ; i ++ ) {
			input.add(Double.parseDouble(scanner.next()));
			input.set(i, T-input.get(i)*0.006);
			if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			}
		}
		System.out.println(output);
		scanner.close();
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Double diff = Double.MAX_VALUE;
		Integer output = 1001;
		Integer N = new Integer(scanner.next());
		Double T = new Double(scanner.next());
		Double A = new Double(scanner.next());
		ArrayList<Double> input = new ArrayList<Double>();
		for(int i = 0; i < N ; i ++ ) {
			input.add(Double.parseDouble(scanner.next()));
			input.set(i, T-input.get(i)*0.006);
			if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			}
		}
		System.out.println(output);
		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Double diff = Double.MAX_VALUE;
		Integer output = 1001;
		Integer N = new Integer(scanner.next());
		Double T = new Double(scanner.next());
		Double A = new Double(scanner.next());
		ArrayList<Double> input = new ArrayList<Double>();
		for(int i = 0; i < N ; i ++ ) {
			input.add(Double.parseDouble(scanner.next()));
			input.set(i, T-input.get(i)*0.006);
			if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			}
		}
		System.out.println(output);
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		Double diff = Double.MAX_VALUE;
		Integer output = 1001;
		Integer N = new Integer(scanner.next());
		Double T = new Double(scanner.next());
		Double A = new Double(scanner.next());
		ArrayList<Double> input = new ArrayList<Double>();
		for(int i = 0; i < N ; i ++ ) {
			input.add(Double.parseDouble(scanner.next()));
			input.set(i, T-input.get(i)*0.006);
			if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			}
		}
		System.out.println(output);
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Double diff = Double.MAX_VALUE; diff Double.MAX_VALUE Double Double.MAX_VALUE Integer output = 1001; output 1001 Integer N = new Integer(scanner.next()); N new Integer(scanner.next()) Double T = new Double(scanner.next()); T new Double(scanner.next()) Double A = new Double(scanner.next()); A new Double(scanner.next()) ArrayList<Double> input = new ArrayList<Double>(); input new ArrayList<Double>() for(int i = 0; i < N ; i ++ ) {
			input.add(Double.parseDouble(scanner.next()));
			input.set(i, T-input.get(i)*0.006);
			if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			}
		} int i = 0; int i = 0; i 0 i < N i N i ++ i ++ i {
			input.add(Double.parseDouble(scanner.next()));
			input.set(i, T-input.get(i)*0.006);
			if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			}
		} {
			input.add(Double.parseDouble(scanner.next()));
			input.set(i, T-input.get(i)*0.006);
			if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			}
		} input.add(Double.parseDouble(scanner.next())) input.add input Double.parseDouble(scanner.next()) Double.parseDouble Double scanner.next() scanner.next scanner input.set(i, T-input.get(i)*0.006) input.set input i T-input.get(i)*0.006 T input.get(i)*0.006 input.get(i) input.get input i 0.006 if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			} diff > Math.abs(A-input.get(i)) diff Math.abs(A-input.get(i)) Math.abs Math A-input.get(i) A input.get(i) input.get input i {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			} diff = Math.abs(A-input.get(i)) diff Math.abs(A-input.get(i)) Math.abs Math A-input.get(i) A input.get(i) input.get input i output = i+1 output i+1 i 1 System.out.println(output) System.out.println System.out System System.out output scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Double diff = Double.MAX_VALUE;
		Integer output = 1001;
		Integer N = new Integer(scanner.next());
		Double T = new Double(scanner.next());
		Double A = new Double(scanner.next());
		ArrayList<Double> input = new ArrayList<Double>();
		for(int i = 0; i < N ; i ++ ) {
			input.add(Double.parseDouble(scanner.next()));
			input.set(i, T-input.get(i)*0.006);
			if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			}
		}
		System.out.println(output);
		scanner.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Double diff = Double.MAX_VALUE;
		Integer output = 1001;
		Integer N = new Integer(scanner.next());
		Double T = new Double(scanner.next());
		Double A = new Double(scanner.next());
		ArrayList<Double> input = new ArrayList<Double>();
		for(int i = 0; i < N ; i ++ ) {
			input.add(Double.parseDouble(scanner.next()));
			input.set(i, T-input.get(i)*0.006);
			if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			}
		}
		System.out.println(output);
		scanner.close();
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Double diff = Double.MAX_VALUE;
		Integer output = 1001;
		Integer N = new Integer(scanner.next());
		Double T = new Double(scanner.next());
		Double A = new Double(scanner.next());
		ArrayList<Double> input = new ArrayList<Double>();
		for(int i = 0; i < N ; i ++ ) {
			input.add(Double.parseDouble(scanner.next()));
			input.set(i, T-input.get(i)*0.006);
			if(diff > Math.abs(A-input.get(i))) {
				diff = Math.abs(A-input.get(i));
				output = i+1;
			}
		}
		System.out.println(output);
		scanner.close();
	}
}
