import java.util.*;
class Main {
  public static void main (String[] args)  {
    
    Scanner sc = new Scanner(System.in);
    
    int n=sc.nextInt();
    double t=sc.nextDouble();
    double a=sc.nextDouble();
    
    double h=0;
    double x=0;
    
    double tmp=100000;
    
    int ans=0;
    
    
    for(int i=1; i<n+1;i++){
      h=sc.nextDouble();
      x=t-h*6/1000;
      if( Math.abs(x-a)<tmp){
        tmp=Math.abs(x-a);
        ans=i;
        }
     }
     
     
      System.out.println(ans);
     


  }
} import java.util.*; util.* java class Main {
  public static void main (String[] args)  {
    
    Scanner sc = new Scanner(System.in);
    
    int n=sc.nextInt();
    double t=sc.nextDouble();
    double a=sc.nextDouble();
    
    double h=0;
    double x=0;
    
    double tmp=100000;
    
    int ans=0;
    
    
    for(int i=1; i<n+1;i++){
      h=sc.nextDouble();
      x=t-h*6/1000;
      if( Math.abs(x-a)<tmp){
        tmp=Math.abs(x-a);
        ans=i;
        }
     }
     
     
      System.out.println(ans);
     


  }
} Main public static void main (String[] args)  {
    
    Scanner sc = new Scanner(System.in);
    
    int n=sc.nextInt();
    double t=sc.nextDouble();
    double a=sc.nextDouble();
    
    double h=0;
    double x=0;
    
    double tmp=100000;
    
    int ans=0;
    
    
    for(int i=1; i<n+1;i++){
      h=sc.nextDouble();
      x=t-h*6/1000;
      if( Math.abs(x-a)<tmp){
        tmp=Math.abs(x-a);
        ans=i;
        }
     }
     
     
      System.out.println(ans);
     


  } main {
    
    Scanner sc = new Scanner(System.in);
    
    int n=sc.nextInt();
    double t=sc.nextDouble();
    double a=sc.nextDouble();
    
    double h=0;
    double x=0;
    
    double tmp=100000;
    
    int ans=0;
    
    
    for(int i=1; i<n+1;i++){
      h=sc.nextDouble();
      x=t-h*6/1000;
      if( Math.abs(x-a)<tmp){
        tmp=Math.abs(x-a);
        ans=i;
        }
     }
     
     
      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 double t=sc.nextDouble(); t sc.nextDouble() sc.nextDouble sc double a=sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc double h=0; h 0 double x=0; x 0 double tmp=100000; tmp 100000 int ans=0; ans 0 for(int i=1; i<n+1;i++){
      h=sc.nextDouble();
      x=t-h*6/1000;
      if( Math.abs(x-a)<tmp){
        tmp=Math.abs(x-a);
        ans=i;
        }
     } int i=1; int i=1; i 1 i<n+1 i n+1 n 1 i++ i++ i {
      h=sc.nextDouble();
      x=t-h*6/1000;
      if( Math.abs(x-a)<tmp){
        tmp=Math.abs(x-a);
        ans=i;
        }
     } {
      h=sc.nextDouble();
      x=t-h*6/1000;
      if( Math.abs(x-a)<tmp){
        tmp=Math.abs(x-a);
        ans=i;
        }
     } h=sc.nextDouble() h sc.nextDouble() sc.nextDouble sc x=t-h*6/1000 x t-h*6/1000 t h*6/1000 h*6 h 6 1000 if( Math.abs(x-a)<tmp){
        tmp=Math.abs(x-a);
        ans=i;
        } Math.abs(x-a)<tmp Math.abs(x-a) Math.abs Math x-a x a tmp {
        tmp=Math.abs(x-a);
        ans=i;
        } tmp=Math.abs(x-a) tmp Math.abs(x-a) Math.abs Math x-a x a ans=i ans i System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main {
  public static void main (String[] args)  {
    
    Scanner sc = new Scanner(System.in);
    
    int n=sc.nextInt();
    double t=sc.nextDouble();
    double a=sc.nextDouble();
    
    double h=0;
    double x=0;
    
    double tmp=100000;
    
    int ans=0;
    
    
    for(int i=1; i<n+1;i++){
      h=sc.nextDouble();
      x=t-h*6/1000;
      if( Math.abs(x-a)<tmp){
        tmp=Math.abs(x-a);
        ans=i;
        }
     }
     
     
      System.out.println(ans);
     


  }
}