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 palaceElevations[] = new int[N];
		
		for (int i = 0; i < N; i++) {
			palaceElevations[i] = sc.nextInt();
		}
		
		int ans = 1;
		double bestPalaceTemperature = T - (palaceElevations[0] * 0.006);
		
		for (int i = 0; i < N; i++) {
			double palaceTemperature = T - (palaceElevations[i] * 0.006);
			
			if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			}
		}
		
		System.out.println(ans);
	}
} 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 palaceElevations[] = new int[N];
		
		for (int i = 0; i < N; i++) {
			palaceElevations[i] = sc.nextInt();
		}
		
		int ans = 1;
		double bestPalaceTemperature = T - (palaceElevations[0] * 0.006);
		
		for (int i = 0; i < N; i++) {
			double palaceTemperature = T - (palaceElevations[i] * 0.006);
			
			if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			}
		}
		
		System.out.println(ans);
	}
} 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 palaceElevations[] = new int[N];
		
		for (int i = 0; i < N; i++) {
			palaceElevations[i] = sc.nextInt();
		}
		
		int ans = 1;
		double bestPalaceTemperature = T - (palaceElevations[0] * 0.006);
		
		for (int i = 0; i < N; i++) {
			double palaceTemperature = T - (palaceElevations[i] * 0.006);
			
			if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			}
		}
		
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int T = sc.nextInt();
		int A = sc.nextInt();
		
		int palaceElevations[] = new int[N];
		
		for (int i = 0; i < N; i++) {
			palaceElevations[i] = sc.nextInt();
		}
		
		int ans = 1;
		double bestPalaceTemperature = T - (palaceElevations[0] * 0.006);
		
		for (int i = 0; i < N; i++) {
			double palaceTemperature = T - (palaceElevations[i] * 0.006);
			
			if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			}
		}
		
		System.out.println(ans);
	} 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 palaceElevations[] = new int[N]; palaceElevations new int[N] N for (int i = 0; i < N; i++) {
			palaceElevations[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			palaceElevations[i] = sc.nextInt();
		} {
			palaceElevations[i] = sc.nextInt();
		} palaceElevations[i] = sc.nextInt() palaceElevations[i] palaceElevations i sc.nextInt() sc.nextInt sc int ans = 1; ans 1 double bestPalaceTemperature = T - (palaceElevations[0] * 0.006); bestPalaceTemperature T - (palaceElevations[0] * 0.006) T (palaceElevations[0] * 0.006) palaceElevations[0] palaceElevations 0 0.006 for (int i = 0; i < N; i++) {
			double palaceTemperature = T - (palaceElevations[i] * 0.006);
			
			if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			double palaceTemperature = T - (palaceElevations[i] * 0.006);
			
			if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			}
		} {
			double palaceTemperature = T - (palaceElevations[i] * 0.006);
			
			if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			}
		} double palaceTemperature = T - (palaceElevations[i] * 0.006); palaceTemperature T - (palaceElevations[i] * 0.006) T (palaceElevations[i] * 0.006) palaceElevations[i] palaceElevations i 0.006 if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			} Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature) Math.abs(A - palaceTemperature) Math.abs Math A - palaceTemperature A palaceTemperature Math.abs(A - bestPalaceTemperature) Math.abs Math A - bestPalaceTemperature A bestPalaceTemperature {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			} bestPalaceTemperature = palaceTemperature bestPalaceTemperature palaceTemperature ans = i + 1 ans i + 1 i 1 System.out.println(ans) System.out.println System.out System System.out ans 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 palaceElevations[] = new int[N];
		
		for (int i = 0; i < N; i++) {
			palaceElevations[i] = sc.nextInt();
		}
		
		int ans = 1;
		double bestPalaceTemperature = T - (palaceElevations[0] * 0.006);
		
		for (int i = 0; i < N; i++) {
			double palaceTemperature = T - (palaceElevations[i] * 0.006);
			
			if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			}
		}
		
		System.out.println(ans);
	}
} 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 palaceElevations[] = new int[N];
		
		for (int i = 0; i < N; i++) {
			palaceElevations[i] = sc.nextInt();
		}
		
		int ans = 1;
		double bestPalaceTemperature = T - (palaceElevations[0] * 0.006);
		
		for (int i = 0; i < N; i++) {
			double palaceTemperature = T - (palaceElevations[i] * 0.006);
			
			if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			}
		}
		
		System.out.println(ans);
	}
} 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 palaceElevations[] = new int[N];
		
		for (int i = 0; i < N; i++) {
			palaceElevations[i] = sc.nextInt();
		}
		
		int ans = 1;
		double bestPalaceTemperature = T - (palaceElevations[0] * 0.006);
		
		for (int i = 0; i < N; i++) {
			double palaceTemperature = T - (palaceElevations[i] * 0.006);
			
			if (Math.abs(A - palaceTemperature) < Math.abs(A - bestPalaceTemperature)) {
				bestPalaceTemperature = palaceTemperature;
				ans = i + 1;
			}
		}
		
		System.out.println(ans);
	}
}
