import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		int H[]= new int[N];
		double Max = Integer.MAX_VALUE;
		int answer = 0;
		for(int i=0; i<N; i++) {
			H[i] = sc.nextInt(); //N個の標高の入力
			double ave = T - H[i] * 0.006; //平均気温
			if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			}
		}
		System.out.println(answer);
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		int H[]= new int[N];
		double Max = Integer.MAX_VALUE;
		int answer = 0;
		for(int i=0; i<N; i++) {
			H[i] = sc.nextInt(); //N個の標高の入力
			double ave = T - H[i] * 0.006; //平均気温
			if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			}
		}
		System.out.println(answer);
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		int H[]= new int[N];
		double Max = Integer.MAX_VALUE;
		int answer = 0;
		for(int i=0; i<N; i++) {
			H[i] = sc.nextInt(); //N個の標高の入力
			double ave = T - H[i] * 0.006; //平均気温
			if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			}
		}
		System.out.println(answer);
		
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		int H[]= new int[N];
		double Max = Integer.MAX_VALUE;
		int answer = 0;
		for(int i=0; i<N; i++) {
			H[i] = sc.nextInt(); //N個の標高の入力
			double ave = T - H[i] * 0.006; //平均気温
			if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			}
		}
		System.out.println(answer);
		
	} 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(); T sc.nextInt() sc.nextInt sc int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int H[]= new int[N]; H new int[N] N double Max = Integer.MAX_VALUE; Max Integer.MAX_VALUE Integer Integer.MAX_VALUE int answer = 0; answer 0 for(int i=0; i<N; i++) {
			H[i] = sc.nextInt(); //N個の標高の入力
			double ave = T - H[i] * 0.006; //平均気温
			if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			H[i] = sc.nextInt(); //N個の標高の入力
			double ave = T - H[i] * 0.006; //平均気温
			if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			}
		} {
			H[i] = sc.nextInt(); //N個の標高の入力
			double ave = T - H[i] * 0.006; //平均気温
			if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			}
		} H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc double ave = T - H[i] * 0.006; ave T - H[i] * 0.006 T H[i] * 0.006 H[i] H i 0.006 if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			} Max>Math.abs(A-ave) Max Math.abs(A-ave) Math.abs Math A-ave A ave {
				Max = Math.abs(A-ave);
				answer = i+1;
			} Max = Math.abs(A-ave) Max Math.abs(A-ave) Math.abs Math A-ave A ave answer = i+1 answer i+1 i 1 System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		int H[]= new int[N];
		double Max = Integer.MAX_VALUE;
		int answer = 0;
		for(int i=0; i<N; i++) {
			H[i] = sc.nextInt(); //N個の標高の入力
			double ave = T - H[i] * 0.006; //平均気温
			if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			}
		}
		System.out.println(answer);
		
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		int H[]= new int[N];
		double Max = Integer.MAX_VALUE;
		int answer = 0;
		for(int i=0; i<N; i++) {
			H[i] = sc.nextInt(); //N個の標高の入力
			double ave = T - H[i] * 0.006; //平均気温
			if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			}
		}
		System.out.println(answer);
		
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		int H[]= new int[N];
		double Max = Integer.MAX_VALUE;
		int answer = 0;
		for(int i=0; i<N; i++) {
			H[i] = sc.nextInt(); //N個の標高の入力
			double ave = T - H[i] * 0.006; //平均気温
			if(Max>Math.abs(A-ave)) {
				Max = Math.abs(A-ave);
				answer = i+1;
			}
		}
		System.out.println(answer);
		
	}
}