import java.util.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		double tp = 1000.0;
		double tt;
		int ti = 0;
		for(i = 0; i < n; i++) {
			tt = Math.abs(a - (t - h[i] * 0.006));
			if(tp > tt) {
				tp = tt;
				ti = i;
			}
		}
		System.out.println(ti+1);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		double tp = 1000.0;
		double tt;
		int ti = 0;
		for(i = 0; i < n; i++) {
			tt = Math.abs(a - (t - h[i] * 0.006));
			if(tp > tt) {
				tp = tt;
				ti = i;
			}
		}
		System.out.println(ti+1);
	}
} Main public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		double tp = 1000.0;
		double tt;
		int ti = 0;
		for(i = 0; i < n; i++) {
			tt = Math.abs(a - (t - h[i] * 0.006));
			if(tp > tt) {
				tp = tt;
				ti = i;
			}
		}
		System.out.println(ti+1);
	} main {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		double tp = 1000.0;
		double tt;
		int ti = 0;
		for(i = 0; i < n; i++) {
			tt = Math.abs(a - (t - h[i] * 0.006));
			if(tp > tt) {
				tp = tt;
				ti = i;
			}
		}
		System.out.println(ti+1);
	} int i i j; j Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int t = Integer.parseInt(sc.next()); t Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] h = new int[n]; h new int[n] n for(i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			h[i] = Integer.parseInt(sc.next());
		} {
			h[i] = Integer.parseInt(sc.next());
		} h[i] = Integer.parseInt(sc.next()) h[i] h i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc double tp = 1000.0; tp 1000.0 double tt; tt int ti = 0; ti 0 for(i = 0; i < n; i++) {
			tt = Math.abs(a - (t - h[i] * 0.006));
			if(tp > tt) {
				tp = tt;
				ti = i;
			}
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			tt = Math.abs(a - (t - h[i] * 0.006));
			if(tp > tt) {
				tp = tt;
				ti = i;
			}
		} {
			tt = Math.abs(a - (t - h[i] * 0.006));
			if(tp > tt) {
				tp = tt;
				ti = i;
			}
		} tt = Math.abs(a - (t - h[i] * 0.006)) tt 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 if(tp > tt) {
				tp = tt;
				ti = i;
			} tp > tt tp tt {
				tp = tt;
				ti = i;
			} tp = tt tp tt ti = i ti i System.out.println(ti+1) System.out.println System.out System System.out ti+1 ti 1 String[] args args public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		double tp = 1000.0;
		double tt;
		int ti = 0;
		for(i = 0; i < n; i++) {
			tt = Math.abs(a - (t - h[i] * 0.006));
			if(tp > tt) {
				tp = tt;
				ti = i;
			}
		}
		System.out.println(ti+1);
	}
} public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		double tp = 1000.0;
		double tt;
		int ti = 0;
		for(i = 0; i < n; i++) {
			tt = Math.abs(a - (t - h[i] * 0.006));
			if(tp > tt) {
				tp = tt;
				ti = i;
			}
		}
		System.out.println(ti+1);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		int a = Integer.parseInt(sc.next());
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		double tp = 1000.0;
		double tt;
		int ti = 0;
		for(i = 0; i < n; i++) {
			tt = Math.abs(a - (t - h[i] * 0.006));
			if(tp > tt) {
				tp = tt;
				ti = i;
			}
		}
		System.out.println(ti+1);
	}
}