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();
		
		double minDiff = 1000000.000;
		int ans = 0;
		
		for(int i = 0;i < n;i++){
			int h = sc.nextInt();
			double nowT = t - h*0.006;
			
			if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			}
		}
		
		System.out.println(ans);
		
		sc.close();
	}
} 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();
		
		double minDiff = 1000000.000;
		int ans = 0;
		
		for(int i = 0;i < n;i++){
			int h = sc.nextInt();
			double nowT = t - h*0.006;
			
			if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			}
		}
		
		System.out.println(ans);
		
		sc.close();
	}
} 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 minDiff = 1000000.000;
		int ans = 0;
		
		for(int i = 0;i < n;i++){
			int h = sc.nextInt();
			double nowT = t - h*0.006;
			
			if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			}
		}
		
		System.out.println(ans);
		
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();
		int a = sc.nextInt();
		
		double minDiff = 1000000.000;
		int ans = 0;
		
		for(int i = 0;i < n;i++){
			int h = sc.nextInt();
			double nowT = t - h*0.006;
			
			if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			}
		}
		
		System.out.println(ans);
		
		sc.close();
	} 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 minDiff = 1000000.000; minDiff 1000000.000 int ans = 0; ans 0 for(int i = 0;i < n;i++){
			int h = sc.nextInt();
			double nowT = t - h*0.006;
			
			if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int h = sc.nextInt();
			double nowT = t - h*0.006;
			
			if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			}
		} {
			int h = sc.nextInt();
			double nowT = t - h*0.006;
			
			if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			}
		} int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc double nowT = t - h*0.006; nowT t - h*0.006 t h*0.006 h 0.006 if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			} minDiff > Math.abs(nowT-a) minDiff Math.abs(nowT-a) Math.abs Math nowT-a nowT a {
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			} minDiff = Math.abs(nowT-a) minDiff Math.abs(nowT-a) Math.abs Math nowT-a nowT a ans = i+1 ans i+1 i 1 System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc 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 minDiff = 1000000.000;
		int ans = 0;
		
		for(int i = 0;i < n;i++){
			int h = sc.nextInt();
			double nowT = t - h*0.006;
			
			if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			}
		}
		
		System.out.println(ans);
		
		sc.close();
	}
} 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 minDiff = 1000000.000;
		int ans = 0;
		
		for(int i = 0;i < n;i++){
			int h = sc.nextInt();
			double nowT = t - h*0.006;
			
			if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			}
		}
		
		System.out.println(ans);
		
		sc.close();
	}
} 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();
		
		double minDiff = 1000000.000;
		int ans = 0;
		
		for(int i = 0;i < n;i++){
			int h = sc.nextInt();
			double nowT = t - h*0.006;
			
			if(minDiff > Math.abs(nowT-a)){
				minDiff = Math.abs(nowT-a);
				ans = i+1;
			}
		}
		
		System.out.println(ans);
		
		sc.close();
	}
}