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[] array=new int[n];
		double min=9999999;
		int res=0;

		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
		}

		for(int i=0;i<n;i++) {
			if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			}
		}
		System.out.println(res);
	}
}

//Arrays.sort(array, (a, b) -> Integer.compare(a[0], b[0]));

 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[] array=new int[n];
		double min=9999999;
		int res=0;

		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
		}

		for(int i=0;i<n;i++) {
			if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			}
		}
		System.out.println(res);
	}
} 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[] array=new int[n];
		double min=9999999;
		int res=0;

		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
		}

		for(int i=0;i<n;i++) {
			if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			}
		}
		System.out.println(res);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		int[] array=new int[n];
		double min=9999999;
		int res=0;

		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
		}

		for(int i=0;i<n;i++) {
			if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			}
		}
		System.out.println(res);
	} 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[] array=new int[n]; array new int[n] n double min=9999999; min 9999999 int res=0; res 0 for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			array[i]=sc.nextInt();
		} {
			array[i]=sc.nextInt();
		} array[i]=sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc for(int i=0;i<n;i++) {
			if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			}
		} {
			if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			}
		} if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			} min>Math.abs(a-(t-array[i]*0.006)) min Math.abs(a-(t-array[i]*0.006)) Math.abs Math a-(t-array[i]*0.006) a (t-array[i]*0.006) t array[i]*0.006 array[i] array i 0.006 {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			} min=Math.abs(a-(t-array[i]*0.006)) min Math.abs(a-(t-array[i]*0.006)) Math.abs Math a-(t-array[i]*0.006) a (t-array[i]*0.006) t array[i]*0.006 array[i] array i 0.006 res=i+1 res i+1 i 1 System.out.println(res) System.out.println System.out System System.out res 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[] array=new int[n];
		double min=9999999;
		int res=0;

		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
		}

		for(int i=0;i<n;i++) {
			if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			}
		}
		System.out.println(res);
	}
} 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[] array=new int[n];
		double min=9999999;
		int res=0;

		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
		}

		for(int i=0;i<n;i++) {
			if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			}
		}
		System.out.println(res);
	}
} 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[] array=new int[n];
		double min=9999999;
		int res=0;

		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
		}

		for(int i=0;i<n;i++) {
			if(min>Math.abs(a-(t-array[i]*0.006))) {
				min=Math.abs(a-(t-array[i]*0.006));
				res=i+1;
			}
		}
		System.out.println(res);
	}
}

//Arrays.sort(array, (a, b) -> Integer.compare(a[0], b[0]));


