

import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextInt();
		double a = sc.nextInt();
		double min = 1000_000_000;
		int min_index = 0;
		
		for(int i = 1; i <= n; i++) {
			double x = sc.nextInt();
			x = t - x*0.006;
			if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			}
		}
		
		System.out.println(min_index);
		sc.close();

	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextInt();
		double a = sc.nextInt();
		double min = 1000_000_000;
		int min_index = 0;
		
		for(int i = 1; i <= n; i++) {
			double x = sc.nextInt();
			x = t - x*0.006;
			if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			}
		}
		
		System.out.println(min_index);
		sc.close();

	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextInt();
		double a = sc.nextInt();
		double min = 1000_000_000;
		int min_index = 0;
		
		for(int i = 1; i <= n; i++) {
			double x = sc.nextInt();
			x = t - x*0.006;
			if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			}
		}
		
		System.out.println(min_index);
		sc.close();

	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextInt();
		double a = sc.nextInt();
		double min = 1000_000_000;
		int min_index = 0;
		
		for(int i = 1; i <= n; i++) {
			double x = sc.nextInt();
			x = t - x*0.006;
			if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			}
		}
		
		System.out.println(min_index);
		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double t = sc.nextInt(); t sc.nextInt() sc.nextInt sc double a = sc.nextInt(); a sc.nextInt() sc.nextInt sc double min = 1000_000_000; min 1000_000_000 int min_index = 0; min_index 0 for(int i = 1; i <= n; i++) {
			double x = sc.nextInt();
			x = t - x*0.006;
			if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			}
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			double x = sc.nextInt();
			x = t - x*0.006;
			if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			}
		} {
			double x = sc.nextInt();
			x = t - x*0.006;
			if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			}
		} double x = sc.nextInt(); x sc.nextInt() sc.nextInt sc x = t - x*0.006 x t - x*0.006 t x*0.006 x 0.006 if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			} min > Math.abs(a - x) min Math.abs(a - x) Math.abs Math a - x a x {
				min = Math.abs(a - x);
				min_index = i;
			} min = Math.abs(a - x) min Math.abs(a - x) Math.abs Math a - x a x min_index = i min_index i System.out.println(min_index) System.out.println System.out System System.out min_index sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextInt();
		double a = sc.nextInt();
		double min = 1000_000_000;
		int min_index = 0;
		
		for(int i = 1; i <= n; i++) {
			double x = sc.nextInt();
			x = t - x*0.006;
			if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			}
		}
		
		System.out.println(min_index);
		sc.close();

	}
} public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextInt();
		double a = sc.nextInt();
		double min = 1000_000_000;
		int min_index = 0;
		
		for(int i = 1; i <= n; i++) {
			double x = sc.nextInt();
			x = t - x*0.006;
			if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			}
		}
		
		System.out.println(min_index);
		sc.close();

	}
} Main


import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double t = sc.nextInt();
		double a = sc.nextInt();
		double min = 1000_000_000;
		int min_index = 0;
		
		for(int i = 1; i <= n; i++) {
			double x = sc.nextInt();
			x = t - x*0.006;
			if(min > Math.abs(a - x)) {
				min = Math.abs(a - x);
				min_index = i;
			}
		}
		
		System.out.println(min_index);
		sc.close();

	}
}
