import java.util.*;
import java.util.Arrays;

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();
    int [] a = new int[N];
    double [] temp = new double[N];
    for(int i=0;i<N;i++){
      a[i] = sc.nextInt();
      temp[i] = (double)T-a[i]*0.006;
      
    }
    double min =1000.0;
    int ans = 0;
    double x;
    for(int i=0;i<N;i++){
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i+1;
      }
    }
    System.out.println(ans);
  }
}
                          
                         
                    
    
    
    
    
    
     import java.util.*; util.* java import java.util.Arrays; Arrays 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();
    int [] a = new int[N];
    double [] temp = new double[N];
    for(int i=0;i<N;i++){
      a[i] = sc.nextInt();
      temp[i] = (double)T-a[i]*0.006;
      
    }
    double min =1000.0;
    int ans = 0;
    double x;
    for(int i=0;i<N;i++){
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i+1;
      }
    }
    System.out.println(ans);
  }
} 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();
    int [] a = new int[N];
    double [] temp = new double[N];
    for(int i=0;i<N;i++){
      a[i] = sc.nextInt();
      temp[i] = (double)T-a[i]*0.006;
      
    }
    double min =1000.0;
    int ans = 0;
    double x;
    for(int i=0;i<N;i++){
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i+1;
      }
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    int [] a = new int[N];
    double [] temp = new double[N];
    for(int i=0;i<N;i++){
      a[i] = sc.nextInt();
      temp[i] = (double)T-a[i]*0.006;
      
    }
    double min =1000.0;
    int ans = 0;
    double x;
    for(int i=0;i<N;i++){
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i+1;
      }
    }
    System.out.println(ans);
  } 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 int [] a = new int[N]; a new int[N] N double [] temp = new double[N]; temp new double[N] N for(int i=0;i<N;i++){
      a[i] = sc.nextInt();
      temp[i] = (double)T-a[i]*0.006;
      
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      a[i] = sc.nextInt();
      temp[i] = (double)T-a[i]*0.006;
      
    } {
      a[i] = sc.nextInt();
      temp[i] = (double)T-a[i]*0.006;
      
    } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc temp[i] = (double)T-a[i]*0.006 temp[i] temp i (double)T-a[i]*0.006 (double)T a[i]*0.006 a[i] a i 0.006 double min =1000.0; min 1000.0 int ans = 0; ans 0 double x; x for(int i=0;i<N;i++){
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i+1;
      }
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i+1;
      }
    } {
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i+1;
      }
    } x = Math.abs(A-temp[i]) x Math.abs(A-temp[i]) Math.abs Math A-temp[i] A temp[i] temp i if(x<min){
        min = x;
        ans = i+1;
      } x<min x min {
        min = x;
        ans = i+1;
      } min = x min x ans = i+1 ans i+1 i 1 System.out.println(ans) System.out.println System.out System System.out ans 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();
    int [] a = new int[N];
    double [] temp = new double[N];
    for(int i=0;i<N;i++){
      a[i] = sc.nextInt();
      temp[i] = (double)T-a[i]*0.006;
      
    }
    double min =1000.0;
    int ans = 0;
    double x;
    for(int i=0;i<N;i++){
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i+1;
      }
    }
    System.out.println(ans);
  }
} 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();
    int [] a = new int[N];
    double [] temp = new double[N];
    for(int i=0;i<N;i++){
      a[i] = sc.nextInt();
      temp[i] = (double)T-a[i]*0.006;
      
    }
    double min =1000.0;
    int ans = 0;
    double x;
    for(int i=0;i<N;i++){
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i+1;
      }
    }
    System.out.println(ans);
  }
} Main
import java.util.*;
import java.util.Arrays;

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();
    int [] a = new int[N];
    double [] temp = new double[N];
    for(int i=0;i<N;i++){
      a[i] = sc.nextInt();
      temp[i] = (double)T-a[i]*0.006;
      
    }
    double min =1000.0;
    int ans = 0;
    double x;
    for(int i=0;i<N;i++){
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i+1;
      }
    }
    System.out.println(ans);
  }
}
                          
                         
                    
    
    
    
    
    
    
