import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double tt = Integer.MAX_VALUE;
		int h, idx = 0;
		for (int i = 0; i < n; i++) {
			h = sc.nextInt();
			if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			}
		}
		System.out.println(idx);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double tt = Integer.MAX_VALUE;
		int h, idx = 0;
		for (int i = 0; i < n; i++) {
			h = sc.nextInt();
			if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			}
		}
		System.out.println(idx);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double tt = Integer.MAX_VALUE;
		int h, idx = 0;
		for (int i = 0; i < n; i++) {
			h = sc.nextInt();
			if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			}
		}
		System.out.println(idx);
	} main {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double tt = Integer.MAX_VALUE;
		int h, idx = 0;
		for (int i = 0; i < n; i++) {
			h = sc.nextInt();
			if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			}
		}
		System.out.println(idx);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc double tt = Integer.MAX_VALUE; tt Integer.MAX_VALUE Integer Integer.MAX_VALUE int h h idx = 0; idx 0 for (int i = 0; i < n; i++) {
			h = sc.nextInt();
			if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			h = sc.nextInt();
			if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			}
		} {
			h = sc.nextInt();
			if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			}
		} h = sc.nextInt() h sc.nextInt() sc.nextInt sc if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			} Math.abs(a-(double)( t - h * 0.006 ))< tt Math.abs(a-(double)( t - h * 0.006 )) Math.abs Math a-(double)( t - h * 0.006 ) a (double)( t - h * 0.006 ) t h * 0.006 h 0.006 tt {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			} tt = Math.abs(a-(double)( t - h * 0.006 )) tt Math.abs(a-(double)( t - h * 0.006 )) Math.abs Math a-(double)( t - h * 0.006 ) a (double)( t - h * 0.006 ) t h * 0.006 h 0.006 idx = i + 1 idx i + 1 i 1 System.out.println(idx) System.out.println System.out System System.out idx String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double tt = Integer.MAX_VALUE;
		int h, idx = 0;
		for (int i = 0; i < n; i++) {
			h = sc.nextInt();
			if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			}
		}
		System.out.println(idx);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double tt = Integer.MAX_VALUE;
		int h, idx = 0;
		for (int i = 0; i < n; i++) {
			h = sc.nextInt();
			if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			}
		}
		System.out.println(idx);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double tt = Integer.MAX_VALUE;
		int h, idx = 0;
		for (int i = 0; i < n; i++) {
			h = sc.nextInt();
			if (Math.abs(a-(double)( t - h * 0.006 ))< tt) {
				tt = Math.abs(a-(double)( t - h * 0.006 ));
				idx = i + 1;
			}
		}
		System.out.println(idx);
	}
}
