import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

/**
 *
 * @author Owner
 *
 */
public class Main {
	/**
	 *
	 * @param args
	 */
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		//String s = sc.nextLine();
		//拠点数
		int N = sc.nextInt();
		//平均気温
		double T = sc.nextDouble();
		//希望気温
		double A = sc.nextDouble();

		List<Double> Hi = new ArrayList<>();

		for (int i = 1; i <= N; i++) {
			double H = sc.nextInt();
			Hi.add(H);
		}
		List<Double> X = new ArrayList<Double>();
		List<Double> XX = new ArrayList<Double>();
		for (Double d : Hi) {
			Double dd = Math.abs(A - (T - d * 0.006));
			X.add(dd);
			XX.add(dd);
		}
		Collections.sort(X);

		int ii = 1;
		for (Double d : XX) {
			if (d == X.get(0)) {
				break;
			}
			ii++;
		}
		System.out.print(ii);
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	/**
	 *
	 * @param args
	 */
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		//String s = sc.nextLine();
		//拠点数
		int N = sc.nextInt();
		//平均気温
		double T = sc.nextDouble();
		//希望気温
		double A = sc.nextDouble();

		List<Double> Hi = new ArrayList<>();

		for (int i = 1; i <= N; i++) {
			double H = sc.nextInt();
			Hi.add(H);
		}
		List<Double> X = new ArrayList<Double>();
		List<Double> XX = new ArrayList<Double>();
		for (Double d : Hi) {
			Double dd = Math.abs(A - (T - d * 0.006));
			X.add(dd);
			XX.add(dd);
		}
		Collections.sort(X);

		int ii = 1;
		for (Double d : XX) {
			if (d == X.get(0)) {
				break;
			}
			ii++;
		}
		System.out.print(ii);
	}
} Main /**
	 *
	 * @param args
	 */
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		//String s = sc.nextLine();
		//拠点数
		int N = sc.nextInt();
		//平均気温
		double T = sc.nextDouble();
		//希望気温
		double A = sc.nextDouble();

		List<Double> Hi = new ArrayList<>();

		for (int i = 1; i <= N; i++) {
			double H = sc.nextInt();
			Hi.add(H);
		}
		List<Double> X = new ArrayList<Double>();
		List<Double> XX = new ArrayList<Double>();
		for (Double d : Hi) {
			Double dd = Math.abs(A - (T - d * 0.006));
			X.add(dd);
			XX.add(dd);
		}
		Collections.sort(X);

		int ii = 1;
		for (Double d : XX) {
			if (d == X.get(0)) {
				break;
			}
			ii++;
		}
		System.out.print(ii);
	} main {

		Scanner sc = new Scanner(System.in);
		//String s = sc.nextLine();
		//拠点数
		int N = sc.nextInt();
		//平均気温
		double T = sc.nextDouble();
		//希望気温
		double A = sc.nextDouble();

		List<Double> Hi = new ArrayList<>();

		for (int i = 1; i <= N; i++) {
			double H = sc.nextInt();
			Hi.add(H);
		}
		List<Double> X = new ArrayList<Double>();
		List<Double> XX = new ArrayList<Double>();
		for (Double d : Hi) {
			Double dd = Math.abs(A - (T - d * 0.006));
			X.add(dd);
			XX.add(dd);
		}
		Collections.sort(X);

		int ii = 1;
		for (Double d : XX) {
			if (d == X.get(0)) {
				break;
			}
			ii++;
		}
		System.out.print(ii);
	} 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 List<Double> Hi = new ArrayList<>(); Hi new ArrayList<>() for (int i = 1; i <= N; i++) {
			double H = sc.nextInt();
			Hi.add(H);
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			double H = sc.nextInt();
			Hi.add(H);
		} {
			double H = sc.nextInt();
			Hi.add(H);
		} double H = sc.nextInt(); H sc.nextInt() sc.nextInt sc Hi.add(H) Hi.add Hi H List<Double> X = new ArrayList<Double>(); X new ArrayList<Double>() List<Double> XX = new ArrayList<Double>(); XX new ArrayList<Double>() for (Double d : Hi) {
			Double dd = Math.abs(A - (T - d * 0.006));
			X.add(dd);
			XX.add(dd);
		} Double d Hi {
			Double dd = Math.abs(A - (T - d * 0.006));
			X.add(dd);
			XX.add(dd);
		} {
			Double dd = Math.abs(A - (T - d * 0.006));
			X.add(dd);
			XX.add(dd);
		} Double dd = Math.abs(A - (T - d * 0.006)); dd Math.abs(A - (T - d * 0.006)) Math.abs Math A - (T - d * 0.006) A (T - d * 0.006) T d * 0.006 d 0.006 X.add(dd) X.add X dd XX.add(dd) XX.add XX dd Collections.sort(X) Collections.sort Collections X int ii = 1; ii 1 for (Double d : XX) {
			if (d == X.get(0)) {
				break;
			}
			ii++;
		} Double d XX {
			if (d == X.get(0)) {
				break;
			}
			ii++;
		} {
			if (d == X.get(0)) {
				break;
			}
			ii++;
		} if (d == X.get(0)) {
				break;
			} d == X.get(0) d X.get(0) X.get X 0 {
				break;
			} break; ii++ ii System.out.print(ii) System.out.print System.out System System.out ii String[] args args public class Main {
	/**
	 *
	 * @param args
	 */
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		//String s = sc.nextLine();
		//拠点数
		int N = sc.nextInt();
		//平均気温
		double T = sc.nextDouble();
		//希望気温
		double A = sc.nextDouble();

		List<Double> Hi = new ArrayList<>();

		for (int i = 1; i <= N; i++) {
			double H = sc.nextInt();
			Hi.add(H);
		}
		List<Double> X = new ArrayList<Double>();
		List<Double> XX = new ArrayList<Double>();
		for (Double d : Hi) {
			Double dd = Math.abs(A - (T - d * 0.006));
			X.add(dd);
			XX.add(dd);
		}
		Collections.sort(X);

		int ii = 1;
		for (Double d : XX) {
			if (d == X.get(0)) {
				break;
			}
			ii++;
		}
		System.out.print(ii);
	}
} public class Main {
	/**
	 *
	 * @param args
	 */
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		//String s = sc.nextLine();
		//拠点数
		int N = sc.nextInt();
		//平均気温
		double T = sc.nextDouble();
		//希望気温
		double A = sc.nextDouble();

		List<Double> Hi = new ArrayList<>();

		for (int i = 1; i <= N; i++) {
			double H = sc.nextInt();
			Hi.add(H);
		}
		List<Double> X = new ArrayList<Double>();
		List<Double> XX = new ArrayList<Double>();
		for (Double d : Hi) {
			Double dd = Math.abs(A - (T - d * 0.006));
			X.add(dd);
			XX.add(dd);
		}
		Collections.sort(X);

		int ii = 1;
		for (Double d : XX) {
			if (d == X.get(0)) {
				break;
			}
			ii++;
		}
		System.out.print(ii);
	}
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

/**
 *
 * @author Owner
 *
 */
public class Main {
	/**
	 *
	 * @param args
	 */
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		//String s = sc.nextLine();
		//拠点数
		int N = sc.nextInt();
		//平均気温
		double T = sc.nextDouble();
		//希望気温
		double A = sc.nextDouble();

		List<Double> Hi = new ArrayList<>();

		for (int i = 1; i <= N; i++) {
			double H = sc.nextInt();
			Hi.add(H);
		}
		List<Double> X = new ArrayList<Double>();
		List<Double> XX = new ArrayList<Double>();
		for (Double d : Hi) {
			Double dd = Math.abs(A - (T - d * 0.006));
			X.add(dd);
			XX.add(dd);
		}
		Collections.sort(X);

		int ii = 1;
		for (Double d : XX) {
			if (d == X.get(0)) {
				break;
			}
			ii++;
		}
		System.out.print(ii);
	}
}