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 score = Math.abs((double)A - ((double)T - (double)H[0] * 0.006));
		int candidate = 1;
		
		for (int i =1; i<N ;i++){
			if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			}
		}
		
		System.out.println(candidate);
		
	}

} 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 score = Math.abs((double)A - ((double)T - (double)H[0] * 0.006));
		int candidate = 1;
		
		for (int i =1; i<N ;i++){
			if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			}
		}
		
		System.out.println(candidate);
		
	}

} 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 score = Math.abs((double)A - ((double)T - (double)H[0] * 0.006));
		int candidate = 1;
		
		for (int i =1; i<N ;i++){
			if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			}
		}
		
		System.out.println(candidate);
		
	} 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 score = Math.abs((double)A - ((double)T - (double)H[0] * 0.006));
		int candidate = 1;
		
		for (int i =1; i<N ;i++){
			if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			}
		}
		
		System.out.println(candidate);
		
	} 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 score = Math.abs((double)A - ((double)T - (double)H[0] * 0.006)); score Math.abs((double)A - ((double)T - (double)H[0] * 0.006)) Math.abs Math (double)A - ((double)T - (double)H[0] * 0.006) (double)A ((double)T - (double)H[0] * 0.006) (double)T (double)H[0] * 0.006 (double)H[0] H 0 0.006 int candidate = 1; candidate 1 for (int i =1; i<N ;i++){
			if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			}
		} int i =1; int i =1; i 1 i<N i N i++ i++ i {
			if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			}
		} {
			if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			}
		} if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			} score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006)) score Math.abs((double)A - ((double)T - (double)H[i] * 0.006)) Math.abs Math (double)A - ((double)T - (double)H[i] * 0.006) (double)A ((double)T - (double)H[i] * 0.006) (double)T (double)H[i] * 0.006 (double)H[i] H i 0.006 {
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			} score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006)) score Math.abs((double)A - ((double)T - (double)H[i] * 0.006)) Math.abs Math (double)A - ((double)T - (double)H[i] * 0.006) (double)A ((double)T - (double)H[i] * 0.006) (double)T (double)H[i] * 0.006 (double)H[i] H i 0.006 candidate = i+1 candidate i+1 i 1 System.out.println(candidate) System.out.println System.out System System.out candidate 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 score = Math.abs((double)A - ((double)T - (double)H[0] * 0.006));
		int candidate = 1;
		
		for (int i =1; i<N ;i++){
			if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			}
		}
		
		System.out.println(candidate);
		
	}

} 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 score = Math.abs((double)A - ((double)T - (double)H[0] * 0.006));
		int candidate = 1;
		
		for (int i =1; i<N ;i++){
			if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			}
		}
		
		System.out.println(candidate);
		
	}

} 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 score = Math.abs((double)A - ((double)T - (double)H[0] * 0.006));
		int candidate = 1;
		
		for (int i =1; i<N ;i++){
			if (score > Math.abs((double)A - ((double)T - (double)H[i] * 0.006))){
				score = Math.abs((double)A - ((double)T - (double)H[i] * 0.006));
				candidate = i+1;
			}
		}
		
		System.out.println(candidate);
		
	}

}