import java.util.*;

public class Main {
	Scanner sc = new Scanner(System.in);
	void doIt() {
		int n = sc.nextInt();
		double t = sc.nextLong();
		double a = sc.nextLong();
		int idx = 0;
		double min = Integer.MAX_VALUE;
		for(int i = 1; i <= n; i++) {
			double d = Math.abs(a - (t - sc.nextLong() * 0.006));
			if(min > d) {
				min = d;
				idx = i;
			}
		}
		System.out.println(idx);
	}
	Main(){doIt();}
	public static void main(String[] args) {
		new Main();
	}

} import java.util.*; util.* java public class Main {
	Scanner sc = new Scanner(System.in);
	void doIt() {
		int n = sc.nextInt();
		double t = sc.nextLong();
		double a = sc.nextLong();
		int idx = 0;
		double min = Integer.MAX_VALUE;
		for(int i = 1; i <= n; i++) {
			double d = Math.abs(a - (t - sc.nextLong() * 0.006));
			if(min > d) {
				min = d;
				idx = i;
			}
		}
		System.out.println(idx);
	}
	Main(){doIt();}
	public static void main(String[] args) {
		new Main();
	}

} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) void doIt() {
		int n = sc.nextInt();
		double t = sc.nextLong();
		double a = sc.nextLong();
		int idx = 0;
		double min = Integer.MAX_VALUE;
		for(int i = 1; i <= n; i++) {
			double d = Math.abs(a - (t - sc.nextLong() * 0.006));
			if(min > d) {
				min = d;
				idx = i;
			}
		}
		System.out.println(idx);
	} doIt {
		int n = sc.nextInt();
		double t = sc.nextLong();
		double a = sc.nextLong();
		int idx = 0;
		double min = Integer.MAX_VALUE;
		for(int i = 1; i <= n; i++) {
			double d = Math.abs(a - (t - sc.nextLong() * 0.006));
			if(min > d) {
				min = d;
				idx = i;
			}
		}
		System.out.println(idx);
	} int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double t = sc.nextLong(); t sc.nextLong() sc.nextLong sc double a = sc.nextLong(); a sc.nextLong() sc.nextLong sc int idx = 0; idx 0 double min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i = 1; i <= n; i++) {
			double d = Math.abs(a - (t - sc.nextLong() * 0.006));
			if(min > d) {
				min = d;
				idx = i;
			}
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			double d = Math.abs(a - (t - sc.nextLong() * 0.006));
			if(min > d) {
				min = d;
				idx = i;
			}
		} {
			double d = Math.abs(a - (t - sc.nextLong() * 0.006));
			if(min > d) {
				min = d;
				idx = i;
			}
		} double d = Math.abs(a - (t - sc.nextLong() * 0.006)); d Math.abs(a - (t - sc.nextLong() * 0.006)) Math.abs Math a - (t - sc.nextLong() * 0.006) a (t - sc.nextLong() * 0.006) t sc.nextLong() * 0.006 sc.nextLong() sc.nextLong sc 0.006 if(min > d) {
				min = d;
				idx = i;
			} min > d min d {
				min = d;
				idx = i;
			} min = d min d idx = i idx i System.out.println(idx) System.out.println System.out System System.out idx Main(){doIt();} Main {doIt();} doIt() doIt public static void main(String[] args) {
		new Main();
	} main {
		new Main();
	} new Main() String[] args args public class Main {
	Scanner sc = new Scanner(System.in);
	void doIt() {
		int n = sc.nextInt();
		double t = sc.nextLong();
		double a = sc.nextLong();
		int idx = 0;
		double min = Integer.MAX_VALUE;
		for(int i = 1; i <= n; i++) {
			double d = Math.abs(a - (t - sc.nextLong() * 0.006));
			if(min > d) {
				min = d;
				idx = i;
			}
		}
		System.out.println(idx);
	}
	Main(){doIt();}
	public static void main(String[] args) {
		new Main();
	}

} public class Main {
	Scanner sc = new Scanner(System.in);
	void doIt() {
		int n = sc.nextInt();
		double t = sc.nextLong();
		double a = sc.nextLong();
		int idx = 0;
		double min = Integer.MAX_VALUE;
		for(int i = 1; i <= n; i++) {
			double d = Math.abs(a - (t - sc.nextLong() * 0.006));
			if(min > d) {
				min = d;
				idx = i;
			}
		}
		System.out.println(idx);
	}
	Main(){doIt();}
	public static void main(String[] args) {
		new Main();
	}

} Main
import java.util.*;

public class Main {
	Scanner sc = new Scanner(System.in);
	void doIt() {
		int n = sc.nextInt();
		double t = sc.nextLong();
		double a = sc.nextLong();
		int idx = 0;
		double min = Integer.MAX_VALUE;
		for(int i = 1; i <= n; i++) {
			double d = Math.abs(a - (t - sc.nextLong() * 0.006));
			if(min > d) {
				min = d;
				idx = i;
			}
		}
		System.out.println(idx);
	}
	Main(){doIt();}
	public static void main(String[] args) {
		new Main();
	}

}
