import java.util.Scanner;
public class Main{

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		double T = sc.nextDouble();

		double A = sc.nextDouble();

		double[] H = new double[N];

		for(int i=0;i<N;i++) H[i] = sc.nextDouble();

		double h = T - (H[0]*0.006);

		int ans = 1;

		for(int i=1;i<N;i++) {

			double hi = T - (H[i]*0.006);

			if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				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();

		double T = sc.nextDouble();

		double A = sc.nextDouble();

		double[] H = new double[N];

		for(int i=0;i<N;i++) H[i] = sc.nextDouble();

		double h = T - (H[0]*0.006);

		int ans = 1;

		for(int i=1;i<N;i++) {

			double hi = T - (H[i]*0.006);

			if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				ans = i+1;

			}
		}

		System.out.println(ans);
	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		double T = sc.nextDouble();

		double A = sc.nextDouble();

		double[] H = new double[N];

		for(int i=0;i<N;i++) H[i] = sc.nextDouble();

		double h = T - (H[0]*0.006);

		int ans = 1;

		for(int i=1;i<N;i++) {

			double hi = T - (H[i]*0.006);

			if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				ans = i+1;

			}
		}

		System.out.println(ans);
	} main {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		double T = sc.nextDouble();

		double A = sc.nextDouble();

		double[] H = new double[N];

		for(int i=0;i<N;i++) H[i] = sc.nextDouble();

		double h = T - (H[0]*0.006);

		int ans = 1;

		for(int i=1;i<N;i++) {

			double hi = T - (H[i]*0.006);

			if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				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 double T = sc.nextDouble(); T sc.nextDouble() sc.nextDouble sc double A = sc.nextDouble(); A sc.nextDouble() sc.nextDouble sc double[] H = new double[N]; H new double[N] N for(int i=0;i<N;i++) H[i] = sc.nextDouble(); int i=0; int i=0; i 0 i<N i N i++ i++ i H[i] = sc.nextDouble(); H[i] = sc.nextDouble() H[i] H i sc.nextDouble() sc.nextDouble sc double h = T - (H[0]*0.006); h T - (H[0]*0.006) T (H[0]*0.006) H[0] H 0 0.006 int ans = 1; ans 1 for(int i=1;i<N;i++) {

			double hi = T - (H[i]*0.006);

			if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				ans = i+1;

			}
		} int i=1; int i=1; i 1 i<N i N i++ i++ i {

			double hi = T - (H[i]*0.006);

			if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				ans = i+1;

			}
		} {

			double hi = T - (H[i]*0.006);

			if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				ans = i+1;

			}
		} double hi = T - (H[i]*0.006); hi T - (H[i]*0.006) T (H[i]*0.006) H[i] H i 0.006 if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				ans = i+1;

			} Math.abs(A-h)>Math.abs(A-hi) Math.abs(A-h) Math.abs Math A-h A h Math.abs(A-hi) Math.abs Math A-hi A hi {

				h = hi;

				ans = i+1;

			} h = hi h hi 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();

		double T = sc.nextDouble();

		double A = sc.nextDouble();

		double[] H = new double[N];

		for(int i=0;i<N;i++) H[i] = sc.nextDouble();

		double h = T - (H[0]*0.006);

		int ans = 1;

		for(int i=1;i<N;i++) {

			double hi = T - (H[i]*0.006);

			if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				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();

		double T = sc.nextDouble();

		double A = sc.nextDouble();

		double[] H = new double[N];

		for(int i=0;i<N;i++) H[i] = sc.nextDouble();

		double h = T - (H[0]*0.006);

		int ans = 1;

		for(int i=1;i<N;i++) {

			double hi = T - (H[i]*0.006);

			if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				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();

		double T = sc.nextDouble();

		double A = sc.nextDouble();

		double[] H = new double[N];

		for(int i=0;i<N;i++) H[i] = sc.nextDouble();

		double h = T - (H[0]*0.006);

		int ans = 1;

		for(int i=1;i<N;i++) {

			double hi = T - (H[i]*0.006);

			if(Math.abs(A-h)>Math.abs(A-hi)) {

				h = hi;

				ans = i+1;

			}
		}

		System.out.println(ans);
	}

}
