import java.io.PrintWriter; 
import java.util.Scanner; 

public class Main
{
	static Scanner in; 
	static PrintWriter out; 

	static void solve()
	{
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int T = stdIn.nextInt();
		int A = stdIn.nextInt();
		int[] H = new int[N];
		for(int i = 0; i < N; i++)
		{
			H[i] = stdIn.nextInt();
		}
		int answer = 1;
		double near_A = Math.abs(A - (T - (H[0] * 0.006)));
		for(int i = 1; i < N; i++)
		{
			if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			}
		}
		System.out.println(answer);
	}

	public static void main(String[] args) 
	{ 
		in = new Scanner(System.in); 
		out = new PrintWriter(System.out); 
		solve(); 
		out.flush(); 
		out.close(); 
		in.close(); 
	} 
} import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main
{
	static Scanner in; 
	static PrintWriter out; 

	static void solve()
	{
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int T = stdIn.nextInt();
		int A = stdIn.nextInt();
		int[] H = new int[N];
		for(int i = 0; i < N; i++)
		{
			H[i] = stdIn.nextInt();
		}
		int answer = 1;
		double near_A = Math.abs(A - (T - (H[0] * 0.006)));
		for(int i = 1; i < N; i++)
		{
			if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			}
		}
		System.out.println(answer);
	}

	public static void main(String[] args) 
	{ 
		in = new Scanner(System.in); 
		out = new PrintWriter(System.out); 
		solve(); 
		out.flush(); 
		out.close(); 
		in.close(); 
	} 
} Main static Scanner in; in static PrintWriter out; out static void solve()
	{
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int T = stdIn.nextInt();
		int A = stdIn.nextInt();
		int[] H = new int[N];
		for(int i = 0; i < N; i++)
		{
			H[i] = stdIn.nextInt();
		}
		int answer = 1;
		double near_A = Math.abs(A - (T - (H[0] * 0.006)));
		for(int i = 1; i < N; i++)
		{
			if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			}
		}
		System.out.println(answer);
	} solve {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int T = stdIn.nextInt();
		int A = stdIn.nextInt();
		int[] H = new int[N];
		for(int i = 0; i < N; i++)
		{
			H[i] = stdIn.nextInt();
		}
		int answer = 1;
		double near_A = Math.abs(A - (T - (H[0] * 0.006)));
		for(int i = 1; i < N; i++)
		{
			if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			}
		}
		System.out.println(answer);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int T = stdIn.nextInt(); T stdIn.nextInt() stdIn.nextInt stdIn int A = stdIn.nextInt(); A stdIn.nextInt() stdIn.nextInt stdIn int[] H = new int[N]; H new int[N] N for(int i = 0; i < N; i++)
		{
			H[i] = stdIn.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			H[i] = stdIn.nextInt();
		} {
			H[i] = stdIn.nextInt();
		} H[i] = stdIn.nextInt() H[i] H i stdIn.nextInt() stdIn.nextInt stdIn int answer = 1; answer 1 double near_A = Math.abs(A - (T - (H[0] * 0.006))); near_A Math.abs(A - (T - (H[0] * 0.006))) Math.abs Math A - (T - (H[0] * 0.006)) A (T - (H[0] * 0.006)) T (H[0] * 0.006) H[0] H 0 0.006 for(int i = 1; i < N; i++)
		{
			if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			}
		} int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
			if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			}
		} {
			if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			}
		} if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			} near_A > Math.abs(A - (T - (H[i] * 0.006))) near_A Math.abs(A - (T - (H[i] * 0.006))) Math.abs Math A - (T - (H[i] * 0.006)) A (T - (H[i] * 0.006)) T (H[i] * 0.006) H[i] H i 0.006 {
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			} answer = i + 1 answer i + 1 i 1 near_A = Math.abs(A - (T - (H[i] * 0.006))) near_A Math.abs(A - (T - (H[i] * 0.006))) Math.abs Math A - (T - (H[i] * 0.006)) A (T - (H[i] * 0.006)) T (H[i] * 0.006) H[i] H i 0.006 System.out.println(answer) System.out.println System.out System System.out answer public static void main(String[] args) 
	{ 
		in = new Scanner(System.in); 
		out = new PrintWriter(System.out); 
		solve(); 
		out.flush(); 
		out.close(); 
		in.close(); 
	} main { 
		in = new Scanner(System.in); 
		out = new PrintWriter(System.out); 
		solve(); 
		out.flush(); 
		out.close(); 
		in.close(); 
	} in = new Scanner(System.in) in new Scanner(System.in) out = new PrintWriter(System.out) out new PrintWriter(System.out) solve() solve out.flush() out.flush out out.close() out.close out in.close() in.close in String[] args args public class Main
{
	static Scanner in; 
	static PrintWriter out; 

	static void solve()
	{
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int T = stdIn.nextInt();
		int A = stdIn.nextInt();
		int[] H = new int[N];
		for(int i = 0; i < N; i++)
		{
			H[i] = stdIn.nextInt();
		}
		int answer = 1;
		double near_A = Math.abs(A - (T - (H[0] * 0.006)));
		for(int i = 1; i < N; i++)
		{
			if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			}
		}
		System.out.println(answer);
	}

	public static void main(String[] args) 
	{ 
		in = new Scanner(System.in); 
		out = new PrintWriter(System.out); 
		solve(); 
		out.flush(); 
		out.close(); 
		in.close(); 
	} 
} public class Main
{
	static Scanner in; 
	static PrintWriter out; 

	static void solve()
	{
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int T = stdIn.nextInt();
		int A = stdIn.nextInt();
		int[] H = new int[N];
		for(int i = 0; i < N; i++)
		{
			H[i] = stdIn.nextInt();
		}
		int answer = 1;
		double near_A = Math.abs(A - (T - (H[0] * 0.006)));
		for(int i = 1; i < N; i++)
		{
			if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			}
		}
		System.out.println(answer);
	}

	public static void main(String[] args) 
	{ 
		in = new Scanner(System.in); 
		out = new PrintWriter(System.out); 
		solve(); 
		out.flush(); 
		out.close(); 
		in.close(); 
	} 
} Main
import java.io.PrintWriter; 
import java.util.Scanner; 

public class Main
{
	static Scanner in; 
	static PrintWriter out; 

	static void solve()
	{
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int T = stdIn.nextInt();
		int A = stdIn.nextInt();
		int[] H = new int[N];
		for(int i = 0; i < N; i++)
		{
			H[i] = stdIn.nextInt();
		}
		int answer = 1;
		double near_A = Math.abs(A - (T - (H[0] * 0.006)));
		for(int i = 1; i < N; i++)
		{
			if(near_A > Math.abs(A - (T - (H[i] * 0.006))))
			{
				answer = i + 1;
				near_A = Math.abs(A - (T - (H[i] * 0.006)));
			}
		}
		System.out.println(answer);
	}

	public static void main(String[] args) 
	{ 
		in = new Scanner(System.in); 
		out = new PrintWriter(System.out); 
		solve(); 
		out.flush(); 
		out.close(); 
		in.close(); 
	} 
}