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();
		
		float[] map = new float[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextFloat();
			map[i] = T - map[i] * 0.006F;
		}
		
		int ans = -1;
		float min = Float.MAX_VALUE;
		for (int i = 0; i < map.length; i++) {
			if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			}
		}
		
		System.out.println(ans+1);
	}
} 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();
		
		float[] map = new float[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextFloat();
			map[i] = T - map[i] * 0.006F;
		}
		
		int ans = -1;
		float min = Float.MAX_VALUE;
		for (int i = 0; i < map.length; i++) {
			if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			}
		}
		
		System.out.println(ans+1);
	}
} 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();
		
		float[] map = new float[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextFloat();
			map[i] = T - map[i] * 0.006F;
		}
		
		int ans = -1;
		float min = Float.MAX_VALUE;
		for (int i = 0; i < map.length; i++) {
			if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			}
		}
		
		System.out.println(ans+1);
	} main {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		
		float[] map = new float[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextFloat();
			map[i] = T - map[i] * 0.006F;
		}
		
		int ans = -1;
		float min = Float.MAX_VALUE;
		for (int i = 0; i < map.length; i++) {
			if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			}
		}
		
		System.out.println(ans+1);
	} 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 float[] map = new float[N]; map new float[N] N for (int i = 0; i < N; i++) {
			map[i] = sc.nextFloat();
			map[i] = T - map[i] * 0.006F;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			map[i] = sc.nextFloat();
			map[i] = T - map[i] * 0.006F;
		} {
			map[i] = sc.nextFloat();
			map[i] = T - map[i] * 0.006F;
		} map[i] = sc.nextFloat() map[i] map i sc.nextFloat() sc.nextFloat sc map[i] = T - map[i] * 0.006F map[i] map i T - map[i] * 0.006F T map[i] * 0.006F map[i] map i 0.006F int ans = -1; ans -1 1 float min = Float.MAX_VALUE; min Float.MAX_VALUE Float Float.MAX_VALUE for (int i = 0; i < map.length; i++) {
			if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			}
		} int i = 0; int i = 0; i 0 i < map.length i map.length map map.length i++ i++ i {
			if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			}
		} {
			if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			}
		} if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			} min > Math.abs(map[i] - A) min Math.abs(map[i] - A) Math.abs Math map[i] - A map[i] map i A {
				min = Math.abs(map[i] - A);
				ans = i;
			} min = Math.abs(map[i] - A) min Math.abs(map[i] - A) Math.abs Math map[i] - A map[i] map i A 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 sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		
		float[] map = new float[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextFloat();
			map[i] = T - map[i] * 0.006F;
		}
		
		int ans = -1;
		float min = Float.MAX_VALUE;
		for (int i = 0; i < map.length; i++) {
			if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			}
		}
		
		System.out.println(ans+1);
	}
} 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();
		
		float[] map = new float[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextFloat();
			map[i] = T - map[i] * 0.006F;
		}
		
		int ans = -1;
		float min = Float.MAX_VALUE;
		for (int i = 0; i < map.length; i++) {
			if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			}
		}
		
		System.out.println(ans+1);
	}
} 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();
		
		float[] map = new float[N];
		for (int i = 0; i < N; i++) {
			map[i] = sc.nextFloat();
			map[i] = T - map[i] * 0.006F;
		}
		
		int ans = -1;
		float min = Float.MAX_VALUE;
		for (int i = 0; i < map.length; i++) {
			if (min > Math.abs(map[i] - A)) {
				min = Math.abs(map[i] - A);
				ans = i;
			}
		}
		
		System.out.println(ans+1);
	}
}