import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int n = Integer.parseInt(scanner.nextLine());

		String[] temp1 = scanner.nextLine().split(" ");
		int t = Integer.parseInt(temp1[0]);
		int a = Integer.parseInt(temp1[1]);

		String[] temp2 = scanner.nextLine().split(" ");
		double flag =  Math.abs(a - (t - Integer.parseInt(temp2[0]) * 0.006));
		double tmp = 0;
		int ans = 1;

		for(int i = 2; i < n + 1; i++) {

			tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006));


			if( flag > tmp) {
				flag = tmp;
				ans = i;
			}

		}

		System.out.println(ans);

	}

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

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int n = Integer.parseInt(scanner.nextLine());

		String[] temp1 = scanner.nextLine().split(" ");
		int t = Integer.parseInt(temp1[0]);
		int a = Integer.parseInt(temp1[1]);

		String[] temp2 = scanner.nextLine().split(" ");
		double flag =  Math.abs(a - (t - Integer.parseInt(temp2[0]) * 0.006));
		double tmp = 0;
		int ans = 1;

		for(int i = 2; i < n + 1; i++) {

			tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006));


			if( flag > tmp) {
				flag = tmp;
				ans = i;
			}

		}

		System.out.println(ans);

	}

} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int n = Integer.parseInt(scanner.nextLine());

		String[] temp1 = scanner.nextLine().split(" ");
		int t = Integer.parseInt(temp1[0]);
		int a = Integer.parseInt(temp1[1]);

		String[] temp2 = scanner.nextLine().split(" ");
		double flag =  Math.abs(a - (t - Integer.parseInt(temp2[0]) * 0.006));
		double tmp = 0;
		int ans = 1;

		for(int i = 2; i < n + 1; i++) {

			tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006));


			if( flag > tmp) {
				flag = tmp;
				ans = i;
			}

		}

		System.out.println(ans);

	} main {

		Scanner scanner = new Scanner(System.in);
		int n = Integer.parseInt(scanner.nextLine());

		String[] temp1 = scanner.nextLine().split(" ");
		int t = Integer.parseInt(temp1[0]);
		int a = Integer.parseInt(temp1[1]);

		String[] temp2 = scanner.nextLine().split(" ");
		double flag =  Math.abs(a - (t - Integer.parseInt(temp2[0]) * 0.006));
		double tmp = 0;
		int ans = 1;

		for(int i = 2; i < n + 1; i++) {

			tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006));


			if( flag > tmp) {
				flag = tmp;
				ans = i;
			}

		}

		System.out.println(ans);

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.nextLine()); n Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner String[] temp1 = scanner.nextLine().split(" "); temp1 scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int t = Integer.parseInt(temp1[0]); t Integer.parseInt(temp1[0]) Integer.parseInt Integer temp1[0] temp1 0 int a = Integer.parseInt(temp1[1]); a Integer.parseInt(temp1[1]) Integer.parseInt Integer temp1[1] temp1 1 String[] temp2 = scanner.nextLine().split(" "); temp2 scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " double flag =  Math.abs(a - (t - Integer.parseInt(temp2[0]) * 0.006)); flag Math.abs(a - (t - Integer.parseInt(temp2[0]) * 0.006)) Math.abs Math a - (t - Integer.parseInt(temp2[0]) * 0.006) a (t - Integer.parseInt(temp2[0]) * 0.006) t Integer.parseInt(temp2[0]) * 0.006 Integer.parseInt(temp2[0]) Integer.parseInt Integer temp2[0] temp2 0 0.006 double tmp = 0; tmp 0 int ans = 1; ans 1 for(int i = 2; i < n + 1; i++) {

			tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006));


			if( flag > tmp) {
				flag = tmp;
				ans = i;
			}

		} int i = 2; int i = 2; i 2 i < n + 1 i n + 1 n 1 i++ i++ i {

			tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006));


			if( flag > tmp) {
				flag = tmp;
				ans = i;
			}

		} {

			tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006));


			if( flag > tmp) {
				flag = tmp;
				ans = i;
			}

		} tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006)) tmp Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006)) Math.abs Math a - (t - Integer.parseInt(temp2[i - 1]) * 0.006) a (t - Integer.parseInt(temp2[i - 1]) * 0.006) t Integer.parseInt(temp2[i - 1]) * 0.006 Integer.parseInt(temp2[i - 1]) Integer.parseInt Integer temp2[i - 1] temp2 i - 1 i 1 0.006 if( flag > tmp) {
				flag = tmp;
				ans = i;
			} flag > tmp flag tmp {
				flag = tmp;
				ans = i;
			} flag = tmp flag tmp ans = i ans i 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 scanner = new Scanner(System.in);
		int n = Integer.parseInt(scanner.nextLine());

		String[] temp1 = scanner.nextLine().split(" ");
		int t = Integer.parseInt(temp1[0]);
		int a = Integer.parseInt(temp1[1]);

		String[] temp2 = scanner.nextLine().split(" ");
		double flag =  Math.abs(a - (t - Integer.parseInt(temp2[0]) * 0.006));
		double tmp = 0;
		int ans = 1;

		for(int i = 2; i < n + 1; i++) {

			tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006));


			if( flag > tmp) {
				flag = tmp;
				ans = i;
			}

		}

		System.out.println(ans);

	}

} public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int n = Integer.parseInt(scanner.nextLine());

		String[] temp1 = scanner.nextLine().split(" ");
		int t = Integer.parseInt(temp1[0]);
		int a = Integer.parseInt(temp1[1]);

		String[] temp2 = scanner.nextLine().split(" ");
		double flag =  Math.abs(a - (t - Integer.parseInt(temp2[0]) * 0.006));
		double tmp = 0;
		int ans = 1;

		for(int i = 2; i < n + 1; i++) {

			tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006));


			if( flag > tmp) {
				flag = tmp;
				ans = i;
			}

		}

		System.out.println(ans);

	}

} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int n = Integer.parseInt(scanner.nextLine());

		String[] temp1 = scanner.nextLine().split(" ");
		int t = Integer.parseInt(temp1[0]);
		int a = Integer.parseInt(temp1[1]);

		String[] temp2 = scanner.nextLine().split(" ");
		double flag =  Math.abs(a - (t - Integer.parseInt(temp2[0]) * 0.006));
		double tmp = 0;
		int ans = 1;

		for(int i = 2; i < n + 1; i++) {

			tmp = Math.abs(a - (t - Integer.parseInt(temp2[i - 1]) * 0.006));


			if( flag > tmp) {
				flag = tmp;
				ans = i;
			}

		}

		System.out.println(ans);

	}

}
