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 min = Double.MAX_VALUE;
    int ret = -1;
      
    for(int i = 0; i< N ; i++){
      double temp = Math.abs(A-(T-sc.nextInt()*0.006));
      if(min>temp){
        min = temp;
        ret = i+1;
      }
    }
    System.out.println(ret);
  }
} 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 min = Double.MAX_VALUE;
    int ret = -1;
      
    for(int i = 0; i< N ; i++){
      double temp = Math.abs(A-(T-sc.nextInt()*0.006));
      if(min>temp){
        min = temp;
        ret = i+1;
      }
    }
    System.out.println(ret);
  }
} 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 min = Double.MAX_VALUE;
    int ret = -1;
      
    for(int i = 0; i< N ; i++){
      double temp = Math.abs(A-(T-sc.nextInt()*0.006));
      if(min>temp){
        min = temp;
        ret = i+1;
      }
    }
    System.out.println(ret);
  } main {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    
    double min = Double.MAX_VALUE;
    int ret = -1;
      
    for(int i = 0; i< N ; i++){
      double temp = Math.abs(A-(T-sc.nextInt()*0.006));
      if(min>temp){
        min = temp;
        ret = i+1;
      }
    }
    System.out.println(ret);
  } 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 min = Double.MAX_VALUE; min Double.MAX_VALUE Double Double.MAX_VALUE int ret = -1; ret -1 1 for(int i = 0; i< N ; i++){
      double temp = Math.abs(A-(T-sc.nextInt()*0.006));
      if(min>temp){
        min = temp;
        ret = i+1;
      }
    } int i = 0; int i = 0; i 0 i< N i N i++ i++ i {
      double temp = Math.abs(A-(T-sc.nextInt()*0.006));
      if(min>temp){
        min = temp;
        ret = i+1;
      }
    } {
      double temp = Math.abs(A-(T-sc.nextInt()*0.006));
      if(min>temp){
        min = temp;
        ret = i+1;
      }
    } double temp = Math.abs(A-(T-sc.nextInt()*0.006)); temp Math.abs(A-(T-sc.nextInt()*0.006)) Math.abs Math A-(T-sc.nextInt()*0.006) A (T-sc.nextInt()*0.006) T sc.nextInt()*0.006 sc.nextInt() sc.nextInt sc 0.006 if(min>temp){
        min = temp;
        ret = i+1;
      } min>temp min temp {
        min = temp;
        ret = i+1;
      } min = temp min temp ret = i+1 ret i+1 i 1 System.out.println(ret) System.out.println System.out System System.out ret 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 min = Double.MAX_VALUE;
    int ret = -1;
      
    for(int i = 0; i< N ; i++){
      double temp = Math.abs(A-(T-sc.nextInt()*0.006));
      if(min>temp){
        min = temp;
        ret = i+1;
      }
    }
    System.out.println(ret);
  }
} 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 min = Double.MAX_VALUE;
    int ret = -1;
      
    for(int i = 0; i< N ; i++){
      double temp = Math.abs(A-(T-sc.nextInt()*0.006));
      if(min>temp){
        min = temp;
        ret = i+1;
      }
    }
    System.out.println(ret);
  }
} 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 min = Double.MAX_VALUE;
    int ret = -1;
      
    for(int i = 0; i< N ; i++){
      double temp = Math.abs(A-(T-sc.nextInt()*0.006));
      if(min>temp){
        min = temp;
        ret = i+1;
      }
    }
    System.out.println(ret);
  }
}