import java.util.Scanner;

class Main{
	static final long MOD = 1000000007;

	static int H, W, K;
	static long[][] dp = new long[110][10];
	static int ans = 0;
	static long n = 0;





	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		int t = sc.nextInt()*1000;
		int a = sc.nextInt()*1000;
		int[] h = new int[n];
		for(int i= 0;i < n;i++){
			h[i] =sc.nextInt();
		}
		long ans = 1000000000;
		int num = 0;
		for(int i=0;i < n;i++){
			int k = t - h[i] * 6;
			long m = ans;
			ans = Math.min(ans, Math.abs(a-k));
			if(m!=ans){
				num = i;
			}
		}
		
		System.out.println(num+1);



	}
}







class Pair implements Comparable{
	int from;		//p
	int end;		//y
	int num;
	int bango;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return end - otherpair.end;
	}
}
 import java.util.Scanner; Scanner java.util class Main{
	static final long MOD = 1000000007;

	static int H, W, K;
	static long[][] dp = new long[110][10];
	static int ans = 0;
	static long n = 0;





	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		int t = sc.nextInt()*1000;
		int a = sc.nextInt()*1000;
		int[] h = new int[n];
		for(int i= 0;i < n;i++){
			h[i] =sc.nextInt();
		}
		long ans = 1000000000;
		int num = 0;
		for(int i=0;i < n;i++){
			int k = t - h[i] * 6;
			long m = ans;
			ans = Math.min(ans, Math.abs(a-k));
			if(m!=ans){
				num = i;
			}
		}
		
		System.out.println(num+1);



	}
} Main static final long MOD = 1000000007; MOD 1000000007 static int H H W W K; K static long[][] dp = new long[110][10]; dp new long[110][10] 110 10 static int ans = 0; ans 0 static long n = 0; n 0 public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		int t = sc.nextInt()*1000;
		int a = sc.nextInt()*1000;
		int[] h = new int[n];
		for(int i= 0;i < n;i++){
			h[i] =sc.nextInt();
		}
		long ans = 1000000000;
		int num = 0;
		for(int i=0;i < n;i++){
			int k = t - h[i] * 6;
			long m = ans;
			ans = Math.min(ans, Math.abs(a-k));
			if(m!=ans){
				num = i;
			}
		}
		
		System.out.println(num+1);



	} main {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		int t = sc.nextInt()*1000;
		int a = sc.nextInt()*1000;
		int[] h = new int[n];
		for(int i= 0;i < n;i++){
			h[i] =sc.nextInt();
		}
		long ans = 1000000000;
		int num = 0;
		for(int i=0;i < n;i++){
			int k = t - h[i] * 6;
			long m = ans;
			ans = Math.min(ans, Math.abs(a-k));
			if(m!=ans){
				num = i;
			}
		}
		
		System.out.println(num+1);



	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int t = sc.nextInt()*1000; t sc.nextInt()*1000 sc.nextInt() sc.nextInt sc 1000 int a = sc.nextInt()*1000; a sc.nextInt()*1000 sc.nextInt() sc.nextInt sc 1000 int[] h = new int[n]; h new int[n] n for(int i= 0;i < n;i++){
			h[i] =sc.nextInt();
		} int i= 0; int i= 0; i 0 i < n i n i++ i++ i {
			h[i] =sc.nextInt();
		} {
			h[i] =sc.nextInt();
		} h[i] =sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc long ans = 1000000000; ans 1000000000 int num = 0; num 0 for(int i=0;i < n;i++){
			int k = t - h[i] * 6;
			long m = ans;
			ans = Math.min(ans, Math.abs(a-k));
			if(m!=ans){
				num = i;
			}
		} int i=0; int i=0; i 0 i < n i n i++ i++ i {
			int k = t - h[i] * 6;
			long m = ans;
			ans = Math.min(ans, Math.abs(a-k));
			if(m!=ans){
				num = i;
			}
		} {
			int k = t - h[i] * 6;
			long m = ans;
			ans = Math.min(ans, Math.abs(a-k));
			if(m!=ans){
				num = i;
			}
		} int k = t - h[i] * 6; k t - h[i] * 6 t h[i] * 6 h[i] h i 6 long m = ans; m ans ans = Math.min(ans, Math.abs(a-k)) ans Math.min(ans, Math.abs(a-k)) Math.min Math ans Math.abs(a-k) Math.abs Math a-k a k if(m!=ans){
				num = i;
			} m!=ans m ans {
				num = i;
			} num = i num i System.out.println(num+1) System.out.println System.out System System.out num+1 num 1 String[] args args class Pair implements Comparable{
	int from;		//p
	int end;		//y
	int num;
	int bango;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return end - otherpair.end;
	}
} Pair int from;		//p from int end;		//y end int num; num int bango; bango @Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return end - otherpair.end;
	} compareTo {
		Pair otherpair = (Pair)other;

		return end - otherpair.end;
	} Pair otherpair = (Pair)other; otherpair (Pair)other return end - otherpair.end; end - otherpair.end end otherpair.end otherpair otherpair.end Object other other Comparable
import java.util.Scanner;

class Main{
	static final long MOD = 1000000007;

	static int H, W, K;
	static long[][] dp = new long[110][10];
	static int ans = 0;
	static long n = 0;





	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		int t = sc.nextInt()*1000;
		int a = sc.nextInt()*1000;
		int[] h = new int[n];
		for(int i= 0;i < n;i++){
			h[i] =sc.nextInt();
		}
		long ans = 1000000000;
		int num = 0;
		for(int i=0;i < n;i++){
			int k = t - h[i] * 6;
			long m = ans;
			ans = Math.min(ans, Math.abs(a-k));
			if(m!=ans){
				num = i;
			}
		}
		
		System.out.println(num+1);



	}
}







class Pair implements Comparable{
	int from;		//p
	int end;		//y
	int num;
	int bango;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return end - otherpair.end;
	}
}

