import java.util.Scanner;

public class Main {

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

		double num = 0;
		double Kinji = Math.pow(5,10)+1;
		int ans = 1;
		for(int i=0; i<N;i++) {
			num = Integer.parseInt(sc.next())*0.006;
			num = T - num;
			num = Math.abs(num-A);

			if(num < Kinji) {
				Kinji = num;
				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 = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		double A = Integer.parseInt(sc.next());

		double num = 0;
		double Kinji = Math.pow(5,10)+1;
		int ans = 1;
		for(int i=0; i<N;i++) {
			num = Integer.parseInt(sc.next())*0.006;
			num = T - num;
			num = Math.abs(num-A);

			if(num < Kinji) {
				Kinji = num;
				ans = i+1;
			}
		}

		System.out.println(ans);

	}

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

		double num = 0;
		double Kinji = Math.pow(5,10)+1;
		int ans = 1;
		for(int i=0; i<N;i++) {
			num = Integer.parseInt(sc.next())*0.006;
			num = T - num;
			num = Math.abs(num-A);

			if(num < Kinji) {
				Kinji = num;
				ans = i+1;
			}
		}

		System.out.println(ans);

	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		double A = Integer.parseInt(sc.next());

		double num = 0;
		double Kinji = Math.pow(5,10)+1;
		int ans = 1;
		for(int i=0; i<N;i++) {
			num = Integer.parseInt(sc.next())*0.006;
			num = T - num;
			num = Math.abs(num-A);

			if(num < Kinji) {
				Kinji = num;
				ans = i+1;
			}
		}

		System.out.println(ans);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int T = Integer.parseInt(sc.next()); T Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double num = 0; num 0 double Kinji = Math.pow(5,10)+1; Kinji Math.pow(5,10)+1 Math.pow(5,10) Math.pow Math 5 10 1 int ans = 1; ans 1 for(int i=0; i<N;i++) {
			num = Integer.parseInt(sc.next())*0.006;
			num = T - num;
			num = Math.abs(num-A);

			if(num < Kinji) {
				Kinji = num;
				ans = i+1;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			num = Integer.parseInt(sc.next())*0.006;
			num = T - num;
			num = Math.abs(num-A);

			if(num < Kinji) {
				Kinji = num;
				ans = i+1;
			}
		} {
			num = Integer.parseInt(sc.next())*0.006;
			num = T - num;
			num = Math.abs(num-A);

			if(num < Kinji) {
				Kinji = num;
				ans = i+1;
			}
		} num = Integer.parseInt(sc.next())*0.006 num Integer.parseInt(sc.next())*0.006 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc 0.006 num = T - num num T - num T num num = Math.abs(num-A) num Math.abs(num-A) Math.abs Math num-A num A if(num < Kinji) {
				Kinji = num;
				ans = i+1;
			} num < Kinji num Kinji {
				Kinji = num;
				ans = i+1;
			} Kinji = num Kinji num 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 = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		double A = Integer.parseInt(sc.next());

		double num = 0;
		double Kinji = Math.pow(5,10)+1;
		int ans = 1;
		for(int i=0; i<N;i++) {
			num = Integer.parseInt(sc.next())*0.006;
			num = T - num;
			num = Math.abs(num-A);

			if(num < Kinji) {
				Kinji = num;
				ans = i+1;
			}
		}

		System.out.println(ans);

	}

} public class Main {

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

		double num = 0;
		double Kinji = Math.pow(5,10)+1;
		int ans = 1;
		for(int i=0; i<N;i++) {
			num = Integer.parseInt(sc.next())*0.006;
			num = T - num;
			num = Math.abs(num-A);

			if(num < Kinji) {
				Kinji = num;
				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 = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		double A = Integer.parseInt(sc.next());

		double num = 0;
		double Kinji = Math.pow(5,10)+1;
		int ans = 1;
		for(int i=0; i<N;i++) {
			num = Integer.parseInt(sc.next())*0.006;
			num = T - num;
			num = Math.abs(num-A);

			if(num < Kinji) {
				Kinji = num;
				ans = i+1;
			}
		}

		System.out.println(ans);

	}

}