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();
		}
		scan.close();
		double min =Integer.MAX_VALUE;
		int num=0;
		for(int i=0;i<n;i++) {
			if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			}
		}
		System.out.println(num);
	}
} 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();
		}
		scan.close();
		double min =Integer.MAX_VALUE;
		int num=0;
		for(int i=0;i<n;i++) {
			if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			}
		}
		System.out.println(num);
	}
} 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();
		}
		scan.close();
		double min =Integer.MAX_VALUE;
		int num=0;
		for(int i=0;i<n;i++) {
			if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			}
		}
		System.out.println(num);
	} 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();
		}
		scan.close();
		double min =Integer.MAX_VALUE;
		int num=0;
		for(int i=0;i<n;i++) {
			if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			}
		}
		System.out.println(num);
	} 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 scan.close() scan.close scan double min =Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE int num=0; num 0 for(int i=0;i<n;i++) {
			if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			}
		} {
			if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			}
		} if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			} Math.abs(a-( t-h[i]*0.006)) < min Math.abs(a-( t-h[i]*0.006)) Math.abs Math a-( t-h[i]*0.006) a ( t-h[i]*0.006) t h[i]*0.006 h[i] h i 0.006 min {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			} min =Math.abs(a-( t-h[i]*0.006)) min Math.abs(a-( t-h[i]*0.006)) Math.abs Math a-( t-h[i]*0.006) a ( t-h[i]*0.006) t h[i]*0.006 h[i] h i 0.006 num=i+1 num i+1 i 1 System.out.println(num) System.out.println System.out System System.out num 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();
		}
		scan.close();
		double min =Integer.MAX_VALUE;
		int num=0;
		for(int i=0;i<n;i++) {
			if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			}
		}
		System.out.println(num);
	}
} 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();
		}
		scan.close();
		double min =Integer.MAX_VALUE;
		int num=0;
		for(int i=0;i<n;i++) {
			if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			}
		}
		System.out.println(num);
	}
} 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();
		}
		scan.close();
		double min =Integer.MAX_VALUE;
		int num=0;
		for(int i=0;i<n;i++) {
			if(Math.abs(a-( t-h[i]*0.006)) < min ) {
				min =Math.abs(a-( t-h[i]*0.006));
				num=i+1;
			}
		}
		System.out.println(num);
	}
}