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 k[] = new double[N];
		double l[] = new double[N];
		
		for (int i=0; i<N; i++){
			k[i] = T-(sc.nextInt()*0.006);
			if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			}
		}
		
		int kai = 0;
		double tmp = 0;
		for (int i=0; i<N; i++){
			if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			}
		}
		
		
		
		
		System.out.println(kai+1);
		
		return;
		
		
	}
	
} 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 k[] = new double[N];
		double l[] = new double[N];
		
		for (int i=0; i<N; i++){
			k[i] = T-(sc.nextInt()*0.006);
			if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			}
		}
		
		int kai = 0;
		double tmp = 0;
		for (int i=0; i<N; i++){
			if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			}
		}
		
		
		
		
		System.out.println(kai+1);
		
		return;
		
		
	}
	
} 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 k[] = new double[N];
		double l[] = new double[N];
		
		for (int i=0; i<N; i++){
			k[i] = T-(sc.nextInt()*0.006);
			if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			}
		}
		
		int kai = 0;
		double tmp = 0;
		for (int i=0; i<N; i++){
			if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			}
		}
		
		
		
		
		System.out.println(kai+1);
		
		return;
		
		
	} 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 k[] = new double[N];
		double l[] = new double[N];
		
		for (int i=0; i<N; i++){
			k[i] = T-(sc.nextInt()*0.006);
			if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			}
		}
		
		int kai = 0;
		double tmp = 0;
		for (int i=0; i<N; i++){
			if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			}
		}
		
		
		
		
		System.out.println(kai+1);
		
		return;
		
		
	} 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 k[] = new double[N]; k new double[N] N double l[] = new double[N]; l new double[N] N for (int i=0; i<N; i++){
			k[i] = T-(sc.nextInt()*0.006);
			if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			k[i] = T-(sc.nextInt()*0.006);
			if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			}
		} {
			k[i] = T-(sc.nextInt()*0.006);
			if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			}
		} k[i] = T-(sc.nextInt()*0.006) k[i] k i T-(sc.nextInt()*0.006) T (sc.nextInt()*0.006) sc.nextInt() sc.nextInt sc 0.006 if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			} A > k[i] A k[i] k i {
				l[i] = A - k[i];
			} l[i] = A - k[i] l[i] l i A - k[i] A k[i] k i {
				l[i] = k[i] - A;
			} l[i] = k[i] - A l[i] l i k[i] - A k[i] k i A int kai = 0; kai 0 double tmp = 0; tmp 0 for (int i=0; i<N; i++){
			if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			}
		} {
			if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			}
		} if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			} i == 0 i 0 {
				kai = 0;
				tmp = l[i];
			} kai = 0 kai 0 tmp = l[i] tmp l[i] l i {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			} if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				} tmp > l[i] tmp l[i] l i {
					kai = i;
					tmp = l[i];
				} kai = i kai i tmp = l[i] tmp l[i] l i System.out.println(kai+1) System.out.println System.out System System.out kai+1 kai 1 return; 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 k[] = new double[N];
		double l[] = new double[N];
		
		for (int i=0; i<N; i++){
			k[i] = T-(sc.nextInt()*0.006);
			if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			}
		}
		
		int kai = 0;
		double tmp = 0;
		for (int i=0; i<N; i++){
			if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			}
		}
		
		
		
		
		System.out.println(kai+1);
		
		return;
		
		
	}
	
} 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 k[] = new double[N];
		double l[] = new double[N];
		
		for (int i=0; i<N; i++){
			k[i] = T-(sc.nextInt()*0.006);
			if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			}
		}
		
		int kai = 0;
		double tmp = 0;
		for (int i=0; i<N; i++){
			if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			}
		}
		
		
		
		
		System.out.println(kai+1);
		
		return;
		
		
	}
	
} 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 k[] = new double[N];
		double l[] = new double[N];
		
		for (int i=0; i<N; i++){
			k[i] = T-(sc.nextInt()*0.006);
			if (A > k[i]){
				l[i] = A - k[i];
			}
			else {
				l[i] = k[i] - A;
			}
		}
		
		int kai = 0;
		double tmp = 0;
		for (int i=0; i<N; i++){
			if (i == 0){
				kai = 0;
				tmp = l[i];
			}
			else {
				if (tmp > l[i]){
					kai = i;
					tmp = l[i];
				}
			}
		}
		
		
		
		
		System.out.println(kai+1);
		
		return;
		
		
	}
	
}
