import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.*;
import java.util.*;

public class Main {

	public static void main(String[] args) throws IOException {
		FastReader in = new FastReader(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = in.nextInt();
		int t = in.nextInt();
		int a = in.nextInt();
		double x = 0.006;
		int ans = 0;
		double min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int y = in.nextInt();
			 double r = t - y * x;
			double b = 0;
			// out.println(r);
			if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			}
			if (b < min) {
				
				min = b;
				ans = i + 1;
			}
		}
		out.println(ans);

		out.flush();
		out.close();

	}

	static class FastReader {
		StringTokenizer st;
		BufferedReader br;

		public FastReader(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		}

		public FastReader(FileReader fileReader) {
			br = new BufferedReader(fileReader);
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public String nextLine() throws IOException {
			return br.readLine();
		}

		public boolean ready() throws IOException {
			return br.ready();
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.FileReader; FileReader java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io import java.math.*; math.* java import java.util.*; util.* java public class Main {

	public static void main(String[] args) throws IOException {
		FastReader in = new FastReader(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = in.nextInt();
		int t = in.nextInt();
		int a = in.nextInt();
		double x = 0.006;
		int ans = 0;
		double min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int y = in.nextInt();
			 double r = t - y * x;
			double b = 0;
			// out.println(r);
			if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			}
			if (b < min) {
				
				min = b;
				ans = i + 1;
			}
		}
		out.println(ans);

		out.flush();
		out.close();

	}

	static class FastReader {
		StringTokenizer st;
		BufferedReader br;

		public FastReader(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		}

		public FastReader(FileReader fileReader) {
			br = new BufferedReader(fileReader);
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public String nextLine() throws IOException {
			return br.readLine();
		}

		public boolean ready() throws IOException {
			return br.ready();
		}
	}

} Main public static void main(String[] args) throws IOException {
		FastReader in = new FastReader(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = in.nextInt();
		int t = in.nextInt();
		int a = in.nextInt();
		double x = 0.006;
		int ans = 0;
		double min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int y = in.nextInt();
			 double r = t - y * x;
			double b = 0;
			// out.println(r);
			if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			}
			if (b < min) {
				
				min = b;
				ans = i + 1;
			}
		}
		out.println(ans);

		out.flush();
		out.close();

	} main {
		FastReader in = new FastReader(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = in.nextInt();
		int t = in.nextInt();
		int a = in.nextInt();
		double x = 0.006;
		int ans = 0;
		double min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int y = in.nextInt();
			 double r = t - y * x;
			double b = 0;
			// out.println(r);
			if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			}
			if (b < min) {
				
				min = b;
				ans = i + 1;
			}
		}
		out.println(ans);

		out.flush();
		out.close();

	} FastReader in = new FastReader(System.in); in new FastReader(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int n = in.nextInt(); n in.nextInt() in.nextInt in int t = in.nextInt(); t in.nextInt() in.nextInt in int a = in.nextInt(); a in.nextInt() in.nextInt in double x = 0.006; x 0.006 int ans = 0; ans 0 double min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
			int y = in.nextInt();
			 double r = t - y * x;
			double b = 0;
			// out.println(r);
			if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			}
			if (b < min) {
				
				min = b;
				ans = i + 1;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int y = in.nextInt();
			 double r = t - y * x;
			double b = 0;
			// out.println(r);
			if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			}
			if (b < min) {
				
				min = b;
				ans = i + 1;
			}
		} {
			int y = in.nextInt();
			 double r = t - y * x;
			double b = 0;
			// out.println(r);
			if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			}
			if (b < min) {
				
				min = b;
				ans = i + 1;
			}
		} int y = in.nextInt(); y in.nextInt() in.nextInt in double r = t - y * x; r t - y * x t y * x y x double b = 0; b 0 if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			} r < 0 && a < 0 r < 0 r 0 a < 0 a 0 {
				b = Math.abs(a - r);
			} b = Math.abs(a - r) b Math.abs(a - r) Math.abs Math a - r a r if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			} a < 0 && r > 0 a < 0 a 0 r > 0 r 0 {
				b = Math.abs(Math.abs(a) + r);
			} b = Math.abs(Math.abs(a) + r) b Math.abs(Math.abs(a) + r) Math.abs Math Math.abs(a) + r Math.abs(a) Math.abs Math a r if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			} a > 0 && r < 0 a > 0 a 0 r < 0 r 0 {
				b = Math.abs(a + Math.abs(r));
			} b = Math.abs(a + Math.abs(r)) b Math.abs(a + Math.abs(r)) Math.abs Math a + Math.abs(r) a Math.abs(r) Math.abs Math r {
				b = Math.abs(a - r);
			} b = Math.abs(a - r) b Math.abs(a - r) Math.abs Math a - r a r if (b < min) {
				
				min = b;
				ans = i + 1;
			} b < min b min {
				
				min = b;
				ans = i + 1;
			} min = b min b ans = i + 1 ans i + 1 i 1 out.println(ans) out.println out ans out.flush() out.flush out out.close() out.close out String[] args args static class FastReader {
		StringTokenizer st;
		BufferedReader br;

		public FastReader(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		}

		public FastReader(FileReader fileReader) {
			br = new BufferedReader(fileReader);
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public String nextLine() throws IOException {
			return br.readLine();
		}

		public boolean ready() throws IOException {
			return br.ready();
		}
	} FastReader StringTokenizer st; st BufferedReader br; br public FastReader(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		} FastReader {
			br = new BufferedReader(new InputStreamReader(s));
		} br = new BufferedReader(new InputStreamReader(s)) br new BufferedReader(new InputStreamReader(s)) InputStream s s public FastReader(FileReader fileReader) {
			br = new BufferedReader(fileReader);
		} FastReader {
			br = new BufferedReader(fileReader);
		} br = new BufferedReader(fileReader) br new BufferedReader(fileReader) FileReader fileReader fileReader public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		} next {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		} while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine()); st == null || !st.hasMoreTokens() st == null st null !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st public int nextInt() throws IOException {
			return Integer.parseInt(next());
		} nextInt {
			return Integer.parseInt(next());
		} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		} nextDouble {
			return Double.parseDouble(next());
		} return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public long nextLong() throws IOException {
			return Long.parseLong(next());
		} nextLong {
			return Long.parseLong(next());
		} return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public String nextLine() throws IOException {
			return br.readLine();
		} nextLine {
			return br.readLine();
		} return br.readLine(); br.readLine() br.readLine br public boolean ready() throws IOException {
			return br.ready();
		} ready {
			return br.ready();
		} return br.ready(); br.ready() br.ready br public class Main {

	public static void main(String[] args) throws IOException {
		FastReader in = new FastReader(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = in.nextInt();
		int t = in.nextInt();
		int a = in.nextInt();
		double x = 0.006;
		int ans = 0;
		double min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int y = in.nextInt();
			 double r = t - y * x;
			double b = 0;
			// out.println(r);
			if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			}
			if (b < min) {
				
				min = b;
				ans = i + 1;
			}
		}
		out.println(ans);

		out.flush();
		out.close();

	}

	static class FastReader {
		StringTokenizer st;
		BufferedReader br;

		public FastReader(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		}

		public FastReader(FileReader fileReader) {
			br = new BufferedReader(fileReader);
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public String nextLine() throws IOException {
			return br.readLine();
		}

		public boolean ready() throws IOException {
			return br.ready();
		}
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		FastReader in = new FastReader(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = in.nextInt();
		int t = in.nextInt();
		int a = in.nextInt();
		double x = 0.006;
		int ans = 0;
		double min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int y = in.nextInt();
			 double r = t - y * x;
			double b = 0;
			// out.println(r);
			if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			}
			if (b < min) {
				
				min = b;
				ans = i + 1;
			}
		}
		out.println(ans);

		out.flush();
		out.close();

	}

	static class FastReader {
		StringTokenizer st;
		BufferedReader br;

		public FastReader(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		}

		public FastReader(FileReader fileReader) {
			br = new BufferedReader(fileReader);
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public String nextLine() throws IOException {
			return br.readLine();
		}

		public boolean ready() throws IOException {
			return br.ready();
		}
	}

} Main
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.*;
import java.util.*;

public class Main {

	public static void main(String[] args) throws IOException {
		FastReader in = new FastReader(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = in.nextInt();
		int t = in.nextInt();
		int a = in.nextInt();
		double x = 0.006;
		int ans = 0;
		double min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			int y = in.nextInt();
			 double r = t - y * x;
			double b = 0;
			// out.println(r);
			if (r < 0 && a < 0) {
				b = Math.abs(a - r);
			} else if (a < 0 && r > 0) {
				b = Math.abs(Math.abs(a) + r);
			} else if (a > 0 && r < 0) {
				b = Math.abs(a + Math.abs(r));
			} else {
				b = Math.abs(a - r);
			}
			if (b < min) {
				
				min = b;
				ans = i + 1;
			}
		}
		out.println(ans);

		out.flush();
		out.close();

	}

	static class FastReader {
		StringTokenizer st;
		BufferedReader br;

		public FastReader(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		}

		public FastReader(FileReader fileReader) {
			br = new BufferedReader(fileReader);
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public String nextLine() throws IOException {
			return br.readLine();
		}

		public boolean ready() throws IOException {
			return br.ready();
		}
	}

}