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);
	}
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz