

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int t = scanner.nextInt();
		int a = scanner.nextInt();
		int x = 0;
		int ans = 0;
		int min = 100000000;
		int res = 0;
		for (int i = 0; i < n; i++) {
			x = scanner.nextInt();
			ans = (t * 1000) - (x * 6) - (a * 1000);
			if(ans < 0) ans = -ans;
			if(ans < min) {
				min = ans;
				res = i;
			}
		}
		
		System.out.println(res + 1);
		scanner.close();

	}

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

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int t = scanner.nextInt();
		int a = scanner.nextInt();
		int x = 0;
		int ans = 0;
		int min = 100000000;
		int res = 0;
		for (int i = 0; i < n; i++) {
			x = scanner.nextInt();
			ans = (t * 1000) - (x * 6) - (a * 1000);
			if(ans < 0) ans = -ans;
			if(ans < min) {
				min = ans;
				res = i;
			}
		}
		
		System.out.println(res + 1);
		scanner.close();

	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int t = scanner.nextInt();
		int a = scanner.nextInt();
		int x = 0;
		int ans = 0;
		int min = 100000000;
		int res = 0;
		for (int i = 0; i < n; i++) {
			x = scanner.nextInt();
			ans = (t * 1000) - (x * 6) - (a * 1000);
			if(ans < 0) ans = -ans;
			if(ans < min) {
				min = ans;
				res = i;
			}
		}
		
		System.out.println(res + 1);
		scanner.close();

	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int t = scanner.nextInt();
		int a = scanner.nextInt();
		int x = 0;
		int ans = 0;
		int min = 100000000;
		int res = 0;
		for (int i = 0; i < n; i++) {
			x = scanner.nextInt();
			ans = (t * 1000) - (x * 6) - (a * 1000);
			if(ans < 0) ans = -ans;
			if(ans < min) {
				min = ans;
				res = i;
			}
		}
		
		System.out.println(res + 1);
		scanner.close();

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int x = 0; x 0 int ans = 0; ans 0 int min = 100000000; min 100000000 int res = 0; res 0 for (int i = 0; i < n; i++) {
			x = scanner.nextInt();
			ans = (t * 1000) - (x * 6) - (a * 1000);
			if(ans < 0) ans = -ans;
			if(ans < min) {
				min = ans;
				res = i;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			x = scanner.nextInt();
			ans = (t * 1000) - (x * 6) - (a * 1000);
			if(ans < 0) ans = -ans;
			if(ans < min) {
				min = ans;
				res = i;
			}
		} {
			x = scanner.nextInt();
			ans = (t * 1000) - (x * 6) - (a * 1000);
			if(ans < 0) ans = -ans;
			if(ans < min) {
				min = ans;
				res = i;
			}
		} x = scanner.nextInt() x scanner.nextInt() scanner.nextInt scanner ans = (t * 1000) - (x * 6) - (a * 1000) ans (t * 1000) - (x * 6) - (a * 1000) (t * 1000) - (x * 6) - (a * 1000) (t * 1000) t 1000 (x * 6) x 6 (a * 1000) a 1000 if(ans < 0) ans = -ans; ans < 0 ans 0 ans = -ans ans -ans ans if(ans < min) {
				min = ans;
				res = i;
			} ans < min ans min {
				min = ans;
				res = i;
			} min = ans min ans res = i res i System.out.println(res + 1) System.out.println System.out System System.out res + 1 res 1 scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int t = scanner.nextInt();
		int a = scanner.nextInt();
		int x = 0;
		int ans = 0;
		int min = 100000000;
		int res = 0;
		for (int i = 0; i < n; i++) {
			x = scanner.nextInt();
			ans = (t * 1000) - (x * 6) - (a * 1000);
			if(ans < 0) ans = -ans;
			if(ans < min) {
				min = ans;
				res = i;
			}
		}
		
		System.out.println(res + 1);
		scanner.close();

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int t = scanner.nextInt();
		int a = scanner.nextInt();
		int x = 0;
		int ans = 0;
		int min = 100000000;
		int res = 0;
		for (int i = 0; i < n; i++) {
			x = scanner.nextInt();
			ans = (t * 1000) - (x * 6) - (a * 1000);
			if(ans < 0) ans = -ans;
			if(ans < min) {
				min = ans;
				res = i;
			}
		}
		
		System.out.println(res + 1);
		scanner.close();

	}

} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int t = scanner.nextInt();
		int a = scanner.nextInt();
		int x = 0;
		int ans = 0;
		int min = 100000000;
		int res = 0;
		for (int i = 0; i < n; i++) {
			x = scanner.nextInt();
			ans = (t * 1000) - (x * 6) - (a * 1000);
			if(ans < 0) ans = -ans;
			if(ans < min) {
				min = ans;
				res = i;
			}
		}
		
		System.out.println(res + 1);
		scanner.close();

	}

}
