import java.util.*;
public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      double[] Temp = new double[N];
      
      double min = (double)Integer.MAX_VALUE;
      int minNum = -1;
      
      for(int i=0; i<N; i++){
        double temp = sc.nextDouble();
        if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        }  
      }  
      System.out.println(minNum);
    }  
}  import java.util.*; util.* java public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      double[] Temp = new double[N];
      
      double min = (double)Integer.MAX_VALUE;
      int minNum = -1;
      
      for(int i=0; i<N; i++){
        double temp = sc.nextDouble();
        if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        }  
      }  
      System.out.println(minNum);
    }  
} Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      double[] Temp = new double[N];
      
      double min = (double)Integer.MAX_VALUE;
      int minNum = -1;
      
      for(int i=0; i<N; i++){
        double temp = sc.nextDouble();
        if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        }  
      }  
      System.out.println(minNum);
    } main {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      double[] Temp = new double[N];
      
      double min = (double)Integer.MAX_VALUE;
      int minNum = -1;
      
      for(int i=0; i<N; i++){
        double temp = sc.nextDouble();
        if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        }  
      }  
      System.out.println(minNum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc double[] Temp = new double[N]; Temp new double[N] N double min = (double)Integer.MAX_VALUE; min (double)Integer.MAX_VALUE Integer Integer.MAX_VALUE int minNum = -1; minNum -1 1 for(int i=0; i<N; i++){
        double temp = sc.nextDouble();
        if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        }  
      } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        double temp = sc.nextDouble();
        if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        }  
      } {
        double temp = sc.nextDouble();
        if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        }  
      } double temp = sc.nextDouble(); temp sc.nextDouble() sc.nextDouble sc if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        } Math.abs(A - (T - temp*0.006)) < min Math.abs(A - (T - temp*0.006)) Math.abs Math A - (T - temp*0.006) A (T - temp*0.006) T temp*0.006 temp 0.006 min {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        } min = Math.abs(A - (T - temp*0.006)) min Math.abs(A - (T - temp*0.006)) Math.abs Math A - (T - temp*0.006) A (T - temp*0.006) T temp*0.006 temp 0.006 minNum = i+1 minNum i+1 i 1 System.out.println(minNum) System.out.println System.out System System.out minNum String[] args args public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      double[] Temp = new double[N];
      
      double min = (double)Integer.MAX_VALUE;
      int minNum = -1;
      
      for(int i=0; i<N; i++){
        double temp = sc.nextDouble();
        if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        }  
      }  
      System.out.println(minNum);
    }  
} public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      double[] Temp = new double[N];
      
      double min = (double)Integer.MAX_VALUE;
      int minNum = -1;
      
      for(int i=0; i<N; i++){
        double temp = sc.nextDouble();
        if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        }  
      }  
      System.out.println(minNum);
    }  
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      double[] Temp = new double[N];
      
      double min = (double)Integer.MAX_VALUE;
      int minNum = -1;
      
      for(int i=0; i<N; i++){
        double temp = sc.nextDouble();
        if(Math.abs(A - (T - temp*0.006)) < min) {
			min = Math.abs(A - (T - temp*0.006));
            minNum = i+1;               
        }  
      }  
      System.out.println(minNum);
    }  
} 