import java.util.Scanner;
public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt(); //宮殿の候補地点
		int t = stdIn.nextInt(); //気温の定数
		int a = stdIn.nextInt(); //この温度に近い場所を探す
		int [] place = new int[n]; //宮殿の標高
		for(int i = 0; i < n; i++) {
			place[i] = stdIn.nextInt();
		}
		
		double ans = Double.MAX_VALUE; //宮殿の地点１が答えにしておく
		int j = 0;
		for(int i = 0; i < n; i++) {
			double ave = t-(place[i] * 0.006);
			double an = (ave-a)>0?ave-a:a-ave;
			if(ans>an) {
				j = i+1;
				ans = an;
			}
		}
		
		System.out.println(j);
		
		
	}

} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt(); //宮殿の候補地点
		int t = stdIn.nextInt(); //気温の定数
		int a = stdIn.nextInt(); //この温度に近い場所を探す
		int [] place = new int[n]; //宮殿の標高
		for(int i = 0; i < n; i++) {
			place[i] = stdIn.nextInt();
		}
		
		double ans = Double.MAX_VALUE; //宮殿の地点１が答えにしておく
		int j = 0;
		for(int i = 0; i < n; i++) {
			double ave = t-(place[i] * 0.006);
			double an = (ave-a)>0?ave-a:a-ave;
			if(ans>an) {
				j = i+1;
				ans = an;
			}
		}
		
		System.out.println(j);
		
		
	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt(); //宮殿の候補地点
		int t = stdIn.nextInt(); //気温の定数
		int a = stdIn.nextInt(); //この温度に近い場所を探す
		int [] place = new int[n]; //宮殿の標高
		for(int i = 0; i < n; i++) {
			place[i] = stdIn.nextInt();
		}
		
		double ans = Double.MAX_VALUE; //宮殿の地点１が答えにしておく
		int j = 0;
		for(int i = 0; i < n; i++) {
			double ave = t-(place[i] * 0.006);
			double an = (ave-a)>0?ave-a:a-ave;
			if(ans>an) {
				j = i+1;
				ans = an;
			}
		}
		
		System.out.println(j);
		
		
	} main {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt(); //宮殿の候補地点
		int t = stdIn.nextInt(); //気温の定数
		int a = stdIn.nextInt(); //この温度に近い場所を探す
		int [] place = new int[n]; //宮殿の標高
		for(int i = 0; i < n; i++) {
			place[i] = stdIn.nextInt();
		}
		
		double ans = Double.MAX_VALUE; //宮殿の地点１が答えにしておく
		int j = 0;
		for(int i = 0; i < n; i++) {
			double ave = t-(place[i] * 0.006);
			double an = (ave-a)>0?ave-a:a-ave;
			if(ans>an) {
				j = i+1;
				ans = an;
			}
		}
		
		System.out.println(j);
		
		
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int t = stdIn.nextInt(); t stdIn.nextInt() stdIn.nextInt stdIn int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int [] place = new int[n]; place new int[n] n for(int i = 0; i < n; i++) {
			place[i] = stdIn.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			place[i] = stdIn.nextInt();
		} {
			place[i] = stdIn.nextInt();
		} place[i] = stdIn.nextInt() place[i] place i stdIn.nextInt() stdIn.nextInt stdIn double ans = Double.MAX_VALUE; ans Double.MAX_VALUE Double Double.MAX_VALUE int j = 0; j 0 for(int i = 0; i < n; i++) {
			double ave = t-(place[i] * 0.006);
			double an = (ave-a)>0?ave-a:a-ave;
			if(ans>an) {
				j = i+1;
				ans = an;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			double ave = t-(place[i] * 0.006);
			double an = (ave-a)>0?ave-a:a-ave;
			if(ans>an) {
				j = i+1;
				ans = an;
			}
		} {
			double ave = t-(place[i] * 0.006);
			double an = (ave-a)>0?ave-a:a-ave;
			if(ans>an) {
				j = i+1;
				ans = an;
			}
		} double ave = t-(place[i] * 0.006); ave t-(place[i] * 0.006) t (place[i] * 0.006) place[i] place i 0.006 double an = (ave-a)>0?ave-a:a-ave; an (ave-a)>0?ave-a:a-ave (ave-a)>0 (ave-a) ave a 0 ave-a ave a a-ave a ave if(ans>an) {
				j = i+1;
				ans = an;
			} ans>an ans an {
				j = i+1;
				ans = an;
			} j = i+1 j i+1 i 1 ans = an ans an System.out.println(j) System.out.println System.out System System.out j String[] args args public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt(); //宮殿の候補地点
		int t = stdIn.nextInt(); //気温の定数
		int a = stdIn.nextInt(); //この温度に近い場所を探す
		int [] place = new int[n]; //宮殿の標高
		for(int i = 0; i < n; i++) {
			place[i] = stdIn.nextInt();
		}
		
		double ans = Double.MAX_VALUE; //宮殿の地点１が答えにしておく
		int j = 0;
		for(int i = 0; i < n; i++) {
			double ave = t-(place[i] * 0.006);
			double an = (ave-a)>0?ave-a:a-ave;
			if(ans>an) {
				j = i+1;
				ans = an;
			}
		}
		
		System.out.println(j);
		
		
	}

} public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt(); //宮殿の候補地点
		int t = stdIn.nextInt(); //気温の定数
		int a = stdIn.nextInt(); //この温度に近い場所を探す
		int [] place = new int[n]; //宮殿の標高
		for(int i = 0; i < n; i++) {
			place[i] = stdIn.nextInt();
		}
		
		double ans = Double.MAX_VALUE; //宮殿の地点１が答えにしておく
		int j = 0;
		for(int i = 0; i < n; i++) {
			double ave = t-(place[i] * 0.006);
			double an = (ave-a)>0?ave-a:a-ave;
			if(ans>an) {
				j = i+1;
				ans = an;
			}
		}
		
		System.out.println(j);
		
		
	}

} Main
import java.util.Scanner;
public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt(); //宮殿の候補地点
		int t = stdIn.nextInt(); //気温の定数
		int a = stdIn.nextInt(); //この温度に近い場所を探す
		int [] place = new int[n]; //宮殿の標高
		for(int i = 0; i < n; i++) {
			place[i] = stdIn.nextInt();
		}
		
		double ans = Double.MAX_VALUE; //宮殿の地点１が答えにしておく
		int j = 0;
		for(int i = 0; i < n; i++) {
			double ave = t-(place[i] * 0.006);
			double an = (ave-a)>0?ave-a:a-ave;
			if(ans>an) {
				j = i+1;
				ans = an;
			}
		}
		
		System.out.println(j);
		
		
	}

}
