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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		int A = Integer.parseInt(sc.next());
		ArrayList<Integer> high = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			high.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int tmp = T * 1000 - high.get(i) * 6;
			if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			}
		}
		System.out.println(ans);
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		int A = Integer.parseInt(sc.next());
		ArrayList<Integer> high = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			high.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int tmp = T * 1000 - high.get(i) * 6;
			if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			}
		}
		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		int A = Integer.parseInt(sc.next());
		ArrayList<Integer> high = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			high.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int tmp = T * 1000 - high.get(i) * 6;
			if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		int A = Integer.parseInt(sc.next());
		ArrayList<Integer> high = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			high.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int tmp = T * 1000 - high.get(i) * 6;
			if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			}
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int T = Integer.parseInt(sc.next()); T Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ArrayList<Integer> high = new ArrayList<>(); high new ArrayList<>() for(int i = 0; i < N; i++) {
			high.add(Integer.parseInt(sc.next()));
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			high.add(Integer.parseInt(sc.next()));
		} {
			high.add(Integer.parseInt(sc.next()));
		} high.add(Integer.parseInt(sc.next())) high.add high Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc int ans = 0; ans 0 int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i = 0; i < N; i++) {
			int tmp = T * 1000 - high.get(i) * 6;
			if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int tmp = T * 1000 - high.get(i) * 6;
			if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			}
		} {
			int tmp = T * 1000 - high.get(i) * 6;
			if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			}
		} int tmp = T * 1000 - high.get(i) * 6; tmp T * 1000 - high.get(i) * 6 T * 1000 T 1000 high.get(i) * 6 high.get(i) high.get high i 6 if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			} Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp) Math.min(min, Math.abs(1000 * A - tmp)) Math.min Math min Math.abs(1000 * A - tmp) Math.abs Math 1000 * A - tmp 1000 * A 1000 A tmp Math.abs(1000 * A - tmp) Math.abs Math 1000 * A - tmp 1000 * A 1000 A tmp {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			} min = Math.min(min, Math.abs(1000 * A - tmp)) min Math.min(min, Math.abs(1000 * A - tmp)) Math.min Math min Math.abs(1000 * A - tmp) Math.abs Math 1000 * A - tmp 1000 * A 1000 A tmp ans = i + 1 ans i + 1 i 1 {
				continue;
			} continue; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		int A = Integer.parseInt(sc.next());
		ArrayList<Integer> high = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			high.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int tmp = T * 1000 - high.get(i) * 6;
			if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			}
		}
		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		int A = Integer.parseInt(sc.next());
		ArrayList<Integer> high = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			high.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int tmp = T * 1000 - high.get(i) * 6;
			if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			}
		}
		System.out.println(ans);
	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		int A = Integer.parseInt(sc.next());
		ArrayList<Integer> high = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			high.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ans = 0;
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int tmp = T * 1000 - high.get(i) * 6;
			if(Math.min(min, Math.abs(1000 * A - tmp)) == Math.abs(1000 * A - tmp)) {
				min = Math.min(min, Math.abs(1000 * A - tmp));
				ans = i + 1;
			}else {
				continue;
			}
		}
		System.out.println(ans);
	}

}