import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
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[] tmp = scanner.nextLine().split(" ");
		int t        = Integer.parseInt(tmp[0]);
		int a        = Integer.parseInt(tmp[1]);
		String[] atm = scanner.nextLine().split(" ");
		int[] list   = new int[n];
		double ans   = Integer.MAX_VALUE;
		int count    = 0;
		for(int i = 0; i < n; i++) {

			list[i]     = Integer.parseInt(atm[i]);
			double temp = t - 0.006 * list[i];


			if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			}

		}

		System.out.println(count);

	}
} import java.util.ArrayList; ArrayList java.util import java.util.HashMap; HashMap java.util import java.util.List; List java.util import java.util.Map; Map java.util import java.util.Map.Entry; Entry java.util.Map 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[] tmp = scanner.nextLine().split(" ");
		int t        = Integer.parseInt(tmp[0]);
		int a        = Integer.parseInt(tmp[1]);
		String[] atm = scanner.nextLine().split(" ");
		int[] list   = new int[n];
		double ans   = Integer.MAX_VALUE;
		int count    = 0;
		for(int i = 0; i < n; i++) {

			list[i]     = Integer.parseInt(atm[i]);
			double temp = t - 0.006 * list[i];


			if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			}

		}

		System.out.println(count);

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

		Scanner scanner = new Scanner(System.in);

		int n        = Integer.parseInt(scanner.nextLine());
		String[] tmp = scanner.nextLine().split(" ");
		int t        = Integer.parseInt(tmp[0]);
		int a        = Integer.parseInt(tmp[1]);
		String[] atm = scanner.nextLine().split(" ");
		int[] list   = new int[n];
		double ans   = Integer.MAX_VALUE;
		int count    = 0;
		for(int i = 0; i < n; i++) {

			list[i]     = Integer.parseInt(atm[i]);
			double temp = t - 0.006 * list[i];


			if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			}

		}

		System.out.println(count);

	} main {

		Scanner scanner = new Scanner(System.in);

		int n        = Integer.parseInt(scanner.nextLine());
		String[] tmp = scanner.nextLine().split(" ");
		int t        = Integer.parseInt(tmp[0]);
		int a        = Integer.parseInt(tmp[1]);
		String[] atm = scanner.nextLine().split(" ");
		int[] list   = new int[n];
		double ans   = Integer.MAX_VALUE;
		int count    = 0;
		for(int i = 0; i < n; i++) {

			list[i]     = Integer.parseInt(atm[i]);
			double temp = t - 0.006 * list[i];


			if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			}

		}

		System.out.println(count);

	} 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[] tmp = scanner.nextLine().split(" "); tmp scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int t        = Integer.parseInt(tmp[0]); t Integer.parseInt(tmp[0]) Integer.parseInt Integer tmp[0] tmp 0 int a        = Integer.parseInt(tmp[1]); a Integer.parseInt(tmp[1]) Integer.parseInt Integer tmp[1] tmp 1 String[] atm = scanner.nextLine().split(" "); atm scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int[] list   = new int[n]; list new int[n] n double ans   = Integer.MAX_VALUE; ans Integer.MAX_VALUE Integer Integer.MAX_VALUE int count    = 0; count 0 for(int i = 0; i < n; i++) {

			list[i]     = Integer.parseInt(atm[i]);
			double temp = t - 0.006 * list[i];


			if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			}

		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {

			list[i]     = Integer.parseInt(atm[i]);
			double temp = t - 0.006 * list[i];


			if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			}

		} {

			list[i]     = Integer.parseInt(atm[i]);
			double temp = t - 0.006 * list[i];


			if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			}

		} list[i]     = Integer.parseInt(atm[i]) list[i] list i Integer.parseInt(atm[i]) Integer.parseInt Integer atm[i] atm i double temp = t - 0.006 * list[i]; temp t - 0.006 * list[i] t 0.006 * list[i] 0.006 list[i] list i if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			} ans > Math.abs(a - temp) ans Math.abs(a - temp) Math.abs Math a - temp a temp {

				count = i + 1;
				ans = Math.abs(a - temp);
			} count = i + 1 count i + 1 i 1 ans = Math.abs(a - temp) ans Math.abs(a - temp) Math.abs Math a - temp a temp System.out.println(count) System.out.println System.out System System.out count 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[] tmp = scanner.nextLine().split(" ");
		int t        = Integer.parseInt(tmp[0]);
		int a        = Integer.parseInt(tmp[1]);
		String[] atm = scanner.nextLine().split(" ");
		int[] list   = new int[n];
		double ans   = Integer.MAX_VALUE;
		int count    = 0;
		for(int i = 0; i < n; i++) {

			list[i]     = Integer.parseInt(atm[i]);
			double temp = t - 0.006 * list[i];


			if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			}

		}

		System.out.println(count);

	}
} public class Main{



	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n        = Integer.parseInt(scanner.nextLine());
		String[] tmp = scanner.nextLine().split(" ");
		int t        = Integer.parseInt(tmp[0]);
		int a        = Integer.parseInt(tmp[1]);
		String[] atm = scanner.nextLine().split(" ");
		int[] list   = new int[n];
		double ans   = Integer.MAX_VALUE;
		int count    = 0;
		for(int i = 0; i < n; i++) {

			list[i]     = Integer.parseInt(atm[i]);
			double temp = t - 0.006 * list[i];


			if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			}

		}

		System.out.println(count);

	}
} Main
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
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[] tmp = scanner.nextLine().split(" ");
		int t        = Integer.parseInt(tmp[0]);
		int a        = Integer.parseInt(tmp[1]);
		String[] atm = scanner.nextLine().split(" ");
		int[] list   = new int[n];
		double ans   = Integer.MAX_VALUE;
		int count    = 0;
		for(int i = 0; i < n; i++) {

			list[i]     = Integer.parseInt(atm[i]);
			double temp = t - 0.006 * list[i];


			if(ans > Math.abs(a - temp)) {

				count = i + 1;
				ans = Math.abs(a - temp);
			}

		}

		System.out.println(count);

	}
}