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.nextInt();

		double A = sc.nextInt();
		double min = 999999999;
		int ans = 0;

		for (int i = 0; i < N; i++) {
			int H = sc.nextInt();

			double AverageTemperature = T - H * 0.006;

			double difference = Math.abs(A - AverageTemperature);
			if (min > difference) {
				min = difference;
				ans = i + 1;
			}
		}

		System.out.println(ans);
	}

} 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.nextInt();

		double A = sc.nextInt();
		double min = 999999999;
		int ans = 0;

		for (int i = 0; i < N; i++) {
			int H = sc.nextInt();

			double AverageTemperature = T - H * 0.006;

			double difference = Math.abs(A - AverageTemperature);
			if (min > difference) {
				min = difference;
				ans = i + 1;
			}
		}

		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		double T = sc.nextInt();

		double A = sc.nextInt();
		double min = 999999999;
		int ans = 0;

		for (int i = 0; i < N; i++) {
			int H = sc.nextInt();

			double AverageTemperature = T - H * 0.006;

			double difference = Math.abs(A - AverageTemperature);
			if (min > difference) {
				min = difference;
				ans = i + 1;
			}
		}

		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		double T = sc.nextInt();

		double A = sc.nextInt();
		double min = 999999999;
		int ans = 0;

		for (int i = 0; i < N; i++) {
			int H = sc.nextInt();

			double AverageTemperature = T - H * 0.006;

			double difference = Math.abs(A - AverageTemperature);
			if (min > difference) {
				min = difference;
				ans = i + 1;
			}
		}

		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc double T = sc.nextInt(); T sc.nextInt() sc.nextInt sc double A = sc.nextInt(); A sc.nextInt() sc.nextInt sc double min = 999999999; min 999999999 int ans = 0; ans 0 for (int i = 0; i < N; i++) {
			int H = sc.nextInt();

			double AverageTemperature = T - H * 0.006;

			double difference = Math.abs(A - AverageTemperature);
			if (min > difference) {
				min = difference;
				ans = i + 1;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int H = sc.nextInt();

			double AverageTemperature = T - H * 0.006;

			double difference = Math.abs(A - AverageTemperature);
			if (min > difference) {
				min = difference;
				ans = i + 1;
			}
		} {
			int H = sc.nextInt();

			double AverageTemperature = T - H * 0.006;

			double difference = Math.abs(A - AverageTemperature);
			if (min > difference) {
				min = difference;
				ans = i + 1;
			}
		} int H = sc.nextInt(); H sc.nextInt() sc.nextInt sc double AverageTemperature = T - H * 0.006; AverageTemperature T - H * 0.006 T H * 0.006 H 0.006 double difference = Math.abs(A - AverageTemperature); difference Math.abs(A - AverageTemperature) Math.abs Math A - AverageTemperature A AverageTemperature if (min > difference) {
				min = difference;
				ans = i + 1;
			} min > difference min difference {
				min = difference;
				ans = i + 1;
			} min = difference min difference ans = i + 1 ans i + 1 i 1 System.out.println(ans) System.out.println System.out System System.out ans 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.nextInt();

		double A = sc.nextInt();
		double min = 999999999;
		int ans = 0;

		for (int i = 0; i < N; i++) {
			int H = sc.nextInt();

			double AverageTemperature = T - H * 0.006;

			double difference = Math.abs(A - AverageTemperature);
			if (min > difference) {
				min = difference;
				ans = i + 1;
			}
		}

		System.out.println(ans);
	}

} public class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		double T = sc.nextInt();

		double A = sc.nextInt();
		double min = 999999999;
		int ans = 0;

		for (int i = 0; i < N; i++) {
			int H = sc.nextInt();

			double AverageTemperature = T - H * 0.006;

			double difference = Math.abs(A - AverageTemperature);
			if (min > difference) {
				min = difference;
				ans = i + 1;
			}
		}

		System.out.println(ans);
	}

} 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.nextInt();

		double A = sc.nextInt();
		double min = 999999999;
		int ans = 0;

		for (int i = 0; i < N; i++) {
			int H = sc.nextInt();

			double AverageTemperature = T - H * 0.006;

			double difference = Math.abs(A - AverageTemperature);
			if (min > difference) {
				min = difference;
				ans = i + 1;
			}
		}

		System.out.println(ans);
	}

}
