import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int n =scan.nextInt();
		int t =scan.nextInt();
		int a =scan.nextInt();
		int h[] = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}

		double temp = Math.abs(a - (t - h[0] * 0.006));
		int ans = 0;
		for ( int i = 1; i < n; i++) {
			if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			}
		}

		System.out.println(ans + 1);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int n =scan.nextInt();
		int t =scan.nextInt();
		int a =scan.nextInt();
		int h[] = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}

		double temp = Math.abs(a - (t - h[0] * 0.006));
		int ans = 0;
		for ( int i = 1; i < n; i++) {
			if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			}
		}

		System.out.println(ans + 1);
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int n =scan.nextInt();
		int t =scan.nextInt();
		int a =scan.nextInt();
		int h[] = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}

		double temp = Math.abs(a - (t - h[0] * 0.006));
		int ans = 0;
		for ( int i = 1; i < n; i++) {
			if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			}
		}

		System.out.println(ans + 1);
	} main {
		Scanner scan = new Scanner(System.in);
		int n =scan.nextInt();
		int t =scan.nextInt();
		int a =scan.nextInt();
		int h[] = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}

		double temp = Math.abs(a - (t - h[0] * 0.006));
		int ans = 0;
		for ( int i = 1; i < n; i++) {
			if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			}
		}

		System.out.println(ans + 1);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n =scan.nextInt(); n scan.nextInt() scan.nextInt scan int t =scan.nextInt(); t scan.nextInt() scan.nextInt scan int a =scan.nextInt(); a scan.nextInt() scan.nextInt scan int h[] = new int[n]; h new int[n] n for (int i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			h[i] = scan.nextInt();
		} {
			h[i] = scan.nextInt();
		} h[i] = scan.nextInt() h[i] h i scan.nextInt() scan.nextInt scan double temp = Math.abs(a - (t - h[0] * 0.006)); temp Math.abs(a - (t - h[0] * 0.006)) Math.abs Math a - (t - h[0] * 0.006) a (t - h[0] * 0.006) t h[0] * 0.006 h[0] h 0 0.006 int ans = 0; ans 0 for ( int i = 1; i < n; i++) {
			if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			}
		} int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
			if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			}
		} {
			if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			}
		} if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			} Math.abs(a - (t - h[i] * 0.006)) < temp Math.abs(a - (t - h[i] * 0.006)) Math.abs Math a - (t - h[i] * 0.006) a (t - h[i] * 0.006) t h[i] * 0.006 h[i] h i 0.006 temp {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			} temp = Math.abs(a - (t - h[i] * 0.006)) temp Math.abs(a - (t - h[i] * 0.006)) Math.abs Math a - (t - h[i] * 0.006) a (t - h[i] * 0.006) t h[i] * 0.006 h[i] h i 0.006 ans = i ans i System.out.println(ans + 1) System.out.println System.out System System.out ans + 1 ans 1 String args[] args public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int n =scan.nextInt();
		int t =scan.nextInt();
		int a =scan.nextInt();
		int h[] = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}

		double temp = Math.abs(a - (t - h[0] * 0.006));
		int ans = 0;
		for ( int i = 1; i < n; i++) {
			if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			}
		}

		System.out.println(ans + 1);
	}
} public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int n =scan.nextInt();
		int t =scan.nextInt();
		int a =scan.nextInt();
		int h[] = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}

		double temp = Math.abs(a - (t - h[0] * 0.006));
		int ans = 0;
		for ( int i = 1; i < n; i++) {
			if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			}
		}

		System.out.println(ans + 1);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int n =scan.nextInt();
		int t =scan.nextInt();
		int a =scan.nextInt();
		int h[] = new int[n];
		for (int i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}

		double temp = Math.abs(a - (t - h[0] * 0.006));
		int ans = 0;
		for ( int i = 1; i < n; i++) {
			if (Math.abs(a - (t - h[i] * 0.006)) < temp) {
				temp = Math.abs(a - (t - h[i] * 0.006));
				ans = i;
			}
		}

		System.out.println(ans + 1);
	}
}