import java.util.Scanner;

class Main{
	static int n;
	static long ans = 1000000000;
	static int[] memo;
	static int[] dp;
	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() ;
		}
		int ans = 1000000000;
		int key = 0;
		for(int i = 0;i < n;i++){
			int d = Math.abs(a - (t-h[i]*6));
			if(d < ans){
				key = i+1;
				ans = Math.min(ans, d);
			}
		}
		System.out.println(key);
	}
}







class Pair implements Comparable{
	int from;
	int end;
	int dis;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return dis - otherpair.dis;
	}
} import java.util.Scanner; Scanner java.util class Main{
	static int n;
	static long ans = 1000000000;
	static int[] memo;
	static int[] dp;
	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() ;
		}
		int ans = 1000000000;
		int key = 0;
		for(int i = 0;i < n;i++){
			int d = Math.abs(a - (t-h[i]*6));
			if(d < ans){
				key = i+1;
				ans = Math.min(ans, d);
			}
		}
		System.out.println(key);
	}
} Main static int n; n static long ans = 1000000000; ans 1000000000 static int[] memo; memo static int[] dp; dp 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() ;
		}
		int ans = 1000000000;
		int key = 0;
		for(int i = 0;i < n;i++){
			int d = Math.abs(a - (t-h[i]*6));
			if(d < ans){
				key = i+1;
				ans = Math.min(ans, d);
			}
		}
		System.out.println(key);
	} 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() ;
		}
		int ans = 1000000000;
		int key = 0;
		for(int i = 0;i < n;i++){
			int d = Math.abs(a - (t-h[i]*6));
			if(d < ans){
				key = i+1;
				ans = Math.min(ans, d);
			}
		}
		System.out.println(key);
	} 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 int ans = 1000000000; ans 1000000000 int key = 0; key 0 for(int i = 0;i < n;i++){
			int d = Math.abs(a - (t-h[i]*6));
			if(d < ans){
				key = i+1;
				ans = Math.min(ans, d);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int d = Math.abs(a - (t-h[i]*6));
			if(d < ans){
				key = i+1;
				ans = Math.min(ans, d);
			}
		} {
			int d = Math.abs(a - (t-h[i]*6));
			if(d < ans){
				key = i+1;
				ans = Math.min(ans, d);
			}
		} int d = Math.abs(a - (t-h[i]*6)); d Math.abs(a - (t-h[i]*6)) Math.abs Math a - (t-h[i]*6) a (t-h[i]*6) t h[i]*6 h[i] h i 6 if(d < ans){
				key = i+1;
				ans = Math.min(ans, d);
			} d < ans d ans {
				key = i+1;
				ans = Math.min(ans, d);
			} key = i+1 key i+1 i 1 ans = Math.min(ans, d) ans Math.min(ans, d) Math.min Math ans d System.out.println(key) System.out.println System.out System System.out key String[] args args class Pair implements Comparable{
	int from;
	int end;
	int dis;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return dis - otherpair.dis;
	}
} Pair int from; from int end; end int dis; dis @Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

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

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

class Main{
	static int n;
	static long ans = 1000000000;
	static int[] memo;
	static int[] dp;
	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() ;
		}
		int ans = 1000000000;
		int key = 0;
		for(int i = 0;i < n;i++){
			int d = Math.abs(a - (t-h[i]*6));
			if(d < ans){
				key = i+1;
				ans = Math.min(ans, d);
			}
		}
		System.out.println(key);
	}
}







class Pair implements Comparable{
	int from;
	int end;
	int dis;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return dis - otherpair.dis;
	}
}
