import java.util.Scanner;
//import java.Math;
public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n,T,A,i,ansb=0,gosa=987654321;
		n=scan.nextInt();
		T=scan.nextInt();
		A=scan.nextInt();
		for(i=0;i<n;i++){
			int H=scan.nextInt();
			if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			}
		}
		System.out.println(ansb);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n,T,A,i,ansb=0,gosa=987654321;
		n=scan.nextInt();
		T=scan.nextInt();
		A=scan.nextInt();
		for(i=0;i<n;i++){
			int H=scan.nextInt();
			if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			}
		}
		System.out.println(ansb);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n,T,A,i,ansb=0,gosa=987654321;
		n=scan.nextInt();
		T=scan.nextInt();
		A=scan.nextInt();
		for(i=0;i<n;i++){
			int H=scan.nextInt();
			if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			}
		}
		System.out.println(ansb);
	} main {
		Scanner scan = new Scanner(System.in);
		int n,T,A,i,ansb=0,gosa=987654321;
		n=scan.nextInt();
		T=scan.nextInt();
		A=scan.nextInt();
		for(i=0;i<n;i++){
			int H=scan.nextInt();
			if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			}
		}
		System.out.println(ansb);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n n T T A A i i ansb=0 ansb 0 gosa=987654321; gosa 987654321 n=scan.nextInt() n scan.nextInt() scan.nextInt scan T=scan.nextInt() T scan.nextInt() scan.nextInt scan A=scan.nextInt() A scan.nextInt() scan.nextInt scan for(i=0;i<n;i++){
			int H=scan.nextInt();
			if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			}
		} i=0; i=0 i 0 i<n i n i++ i++ i {
			int H=scan.nextInt();
			if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			}
		} {
			int H=scan.nextInt();
			if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			}
		} int H=scan.nextInt(); H scan.nextInt() scan.nextInt scan if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			} gosa>Math.abs(T*1000-H*6-A*1000) gosa Math.abs(T*1000-H*6-A*1000) Math.abs Math T*1000-H*6-A*1000 T*1000-H*6-A*1000 T*1000 T 1000 H*6 H 6 A*1000 A 1000 {
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			} gosa=Math.abs(T*1000-H*6-A*1000) gosa Math.abs(T*1000-H*6-A*1000) Math.abs Math T*1000-H*6-A*1000 T*1000-H*6-A*1000 T*1000 T 1000 H*6 H 6 A*1000 A 1000 ansb=i+1 ansb i+1 i 1 System.out.println(ansb) System.out.println System.out System System.out ansb String[] args args public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n,T,A,i,ansb=0,gosa=987654321;
		n=scan.nextInt();
		T=scan.nextInt();
		A=scan.nextInt();
		for(i=0;i<n;i++){
			int H=scan.nextInt();
			if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			}
		}
		System.out.println(ansb);
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n,T,A,i,ansb=0,gosa=987654321;
		n=scan.nextInt();
		T=scan.nextInt();
		A=scan.nextInt();
		for(i=0;i<n;i++){
			int H=scan.nextInt();
			if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			}
		}
		System.out.println(ansb);
	}
} Main
import java.util.Scanner;
//import java.Math;
public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n,T,A,i,ansb=0,gosa=987654321;
		n=scan.nextInt();
		T=scan.nextInt();
		A=scan.nextInt();
		for(i=0;i<n;i++){
			int H=scan.nextInt();
			if(gosa>Math.abs(T*1000-H*6-A*1000)){
				gosa=Math.abs(T*1000-H*6-A*1000);
				ansb=i+1;
			}
		}
		System.out.println(ansb);
	}
}