import 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();
		double[] h = new double[n];

		for(int i=0; i<n; i++){
			int b = sc.nextInt();
			h[i] = t - b*0.006;
		}

		double min = 1000000000;
		int ans=-1;
		for(int i=0; i<n; i++){
			double x;
			if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			}
			if(x <= min){
				ans = i;
				min = x;
			}
		}
		System.out.println(ans+1);



	}
} import java.util.*; util.* java 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();
		double[] h = new double[n];

		for(int i=0; i<n; i++){
			int b = sc.nextInt();
			h[i] = t - b*0.006;
		}

		double min = 1000000000;
		int ans=-1;
		for(int i=0; i<n; i++){
			double x;
			if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			}
			if(x <= min){
				ans = i;
				min = x;
			}
		}
		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();
		double[] h = new double[n];

		for(int i=0; i<n; i++){
			int b = sc.nextInt();
			h[i] = t - b*0.006;
		}

		double min = 1000000000;
		int ans=-1;
		for(int i=0; i<n; i++){
			double x;
			if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			}
			if(x <= min){
				ans = i;
				min = x;
			}
		}
		System.out.println(ans+1);



	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		double[] h = new double[n];

		for(int i=0; i<n; i++){
			int b = sc.nextInt();
			h[i] = t - b*0.006;
		}

		double min = 1000000000;
		int ans=-1;
		for(int i=0; i<n; i++){
			double x;
			if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			}
			if(x <= min){
				ans = i;
				min = x;
			}
		}
		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 double[] h = new double[n]; h new double[n] n for(int i=0; i<n; i++){
			int b = sc.nextInt();
			h[i] = t - b*0.006;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int b = sc.nextInt();
			h[i] = t - b*0.006;
		} {
			int b = sc.nextInt();
			h[i] = t - b*0.006;
		} int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc h[i] = t - b*0.006 h[i] h i t - b*0.006 t b*0.006 b 0.006 double min = 1000000000; min 1000000000 int ans=-1; ans -1 1 for(int i=0; i<n; i++){
			double x;
			if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			}
			if(x <= min){
				ans = i;
				min = x;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			double x;
			if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			}
			if(x <= min){
				ans = i;
				min = x;
			}
		} {
			double x;
			if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			}
			if(x <= min){
				ans = i;
				min = x;
			}
		} double x; x if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			} h[i] >= a h[i] h i a {
				x = h[i]-a;
			} x = h[i]-a x h[i]-a h[i] h i a {
				x = a - h[i];
			} x = a - h[i] x a - h[i] a h[i] h i if(x <= min){
				ans = i;
				min = x;
			} x <= min x min {
				ans = i;
				min = x;
			} ans = i ans i min = x min x 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();
		double[] h = new double[n];

		for(int i=0; i<n; i++){
			int b = sc.nextInt();
			h[i] = t - b*0.006;
		}

		double min = 1000000000;
		int ans=-1;
		for(int i=0; i<n; i++){
			double x;
			if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			}
			if(x <= min){
				ans = i;
				min = x;
			}
		}
		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();
		double[] h = new double[n];

		for(int i=0; i<n; i++){
			int b = sc.nextInt();
			h[i] = t - b*0.006;
		}

		double min = 1000000000;
		int ans=-1;
		for(int i=0; i<n; i++){
			double x;
			if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			}
			if(x <= min){
				ans = i;
				min = x;
			}
		}
		System.out.println(ans+1);



	}
} Main
import 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();
		double[] h = new double[n];

		for(int i=0; i<n; i++){
			int b = sc.nextInt();
			h[i] = t - b*0.006;
		}

		double min = 1000000000;
		int ans=-1;
		for(int i=0; i<n; i++){
			double x;
			if(h[i] >= a){
				x = h[i]-a;
			}else{
				x = a - h[i];
			}
			if(x <= min){
				ans = i;
				min = x;
			}
		}
		System.out.println(ans+1);



	}
}