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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		List<Double> list=new ArrayList<Double>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		for(int i=0;n>i;i++) {
			int h = sc.nextInt();
			list.add(t-h*0.006);
		}
		//System.out.println(list);
		double answer = 10000;
		int count=0;
		for(int i=0;list.size()>i;i++) {
			double b = Math.abs(a-list.get(i));
			if(b<answer) {
				count=i+1;
				answer=b;
			}
		}
		System.out.println(count);
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		List<Double> list=new ArrayList<Double>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		for(int i=0;n>i;i++) {
			int h = sc.nextInt();
			list.add(t-h*0.006);
		}
		//System.out.println(list);
		double answer = 10000;
		int count=0;
		for(int i=0;list.size()>i;i++) {
			double b = Math.abs(a-list.get(i));
			if(b<answer) {
				count=i+1;
				answer=b;
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		List<Double> list=new ArrayList<Double>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		for(int i=0;n>i;i++) {
			int h = sc.nextInt();
			list.add(t-h*0.006);
		}
		//System.out.println(list);
		double answer = 10000;
		int count=0;
		for(int i=0;list.size()>i;i++) {
			double b = Math.abs(a-list.get(i));
			if(b<answer) {
				count=i+1;
				answer=b;
			}
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		List<Double> list=new ArrayList<Double>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		for(int i=0;n>i;i++) {
			int h = sc.nextInt();
			list.add(t-h*0.006);
		}
		//System.out.println(list);
		double answer = 10000;
		int count=0;
		for(int i=0;list.size()>i;i++) {
			double b = Math.abs(a-list.get(i));
			if(b<answer) {
				count=i+1;
				answer=b;
			}
		}
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Double> list=new ArrayList<Double>(); list new ArrayList<Double>() 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 for(int i=0;n>i;i++) {
			int h = sc.nextInt();
			list.add(t-h*0.006);
		} int i=0; int i=0; i 0 n>i n i i++ i++ i {
			int h = sc.nextInt();
			list.add(t-h*0.006);
		} {
			int h = sc.nextInt();
			list.add(t-h*0.006);
		} int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc list.add(t-h*0.006) list.add list t-h*0.006 t h*0.006 h 0.006 double answer = 10000; answer 10000 int count=0; count 0 for(int i=0;list.size()>i;i++) {
			double b = Math.abs(a-list.get(i));
			if(b<answer) {
				count=i+1;
				answer=b;
			}
		} int i=0; int i=0; i 0 list.size()>i list.size() list.size list i i++ i++ i {
			double b = Math.abs(a-list.get(i));
			if(b<answer) {
				count=i+1;
				answer=b;
			}
		} {
			double b = Math.abs(a-list.get(i));
			if(b<answer) {
				count=i+1;
				answer=b;
			}
		} double b = Math.abs(a-list.get(i)); b Math.abs(a-list.get(i)) Math.abs Math a-list.get(i) a list.get(i) list.get list i if(b<answer) {
				count=i+1;
				answer=b;
			} b<answer b answer {
				count=i+1;
				answer=b;
			} count=i+1 count i+1 i 1 answer=b answer b System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		List<Double> list=new ArrayList<Double>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		for(int i=0;n>i;i++) {
			int h = sc.nextInt();
			list.add(t-h*0.006);
		}
		//System.out.println(list);
		double answer = 10000;
		int count=0;
		for(int i=0;list.size()>i;i++) {
			double b = Math.abs(a-list.get(i));
			if(b<answer) {
				count=i+1;
				answer=b;
			}
		}
		System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		List<Double> list=new ArrayList<Double>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		for(int i=0;n>i;i++) {
			int h = sc.nextInt();
			list.add(t-h*0.006);
		}
		//System.out.println(list);
		double answer = 10000;
		int count=0;
		for(int i=0;list.size()>i;i++) {
			double b = Math.abs(a-list.get(i));
			if(b<answer) {
				count=i+1;
				answer=b;
			}
		}
		System.out.println(count);
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		List<Double> list=new ArrayList<Double>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		for(int i=0;n>i;i++) {
			int h = sc.nextInt();
			list.add(t-h*0.006);
		}
		//System.out.println(list);
		double answer = 10000;
		int count=0;
		for(int i=0;list.size()>i;i++) {
			double b = Math.abs(a-list.get(i));
			if(b<answer) {
				count=i+1;
				answer=b;
			}
		}
		System.out.println(count);
	}
}