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 x = (T - A) *1000 / 6;
    double diff = -1;
    int no = -1;
    
    for(int i=0;i<N;i++)
    {
      int H = sc.nextInt();
      
      if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      }
    }
    System.out.println(no);
  }
} 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 x = (T - A) *1000 / 6;
    double diff = -1;
    int no = -1;
    
    for(int i=0;i<N;i++)
    {
      int H = sc.nextInt();
      
      if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      }
    }
    System.out.println(no);
  }
} 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 x = (T - A) *1000 / 6;
    double diff = -1;
    int no = -1;
    
    for(int i=0;i<N;i++)
    {
      int H = sc.nextInt();
      
      if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      }
    }
    System.out.println(no);
  } main {
    
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    
    double x = (T - A) *1000 / 6;
    double diff = -1;
    int no = -1;
    
    for(int i=0;i<N;i++)
    {
      int H = sc.nextInt();
      
      if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      }
    }
    System.out.println(no);
  } 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 x = (T - A) *1000 / 6; x (T - A) *1000 / 6 (T - A) *1000 (T - A) T A 1000 6 double diff = -1; diff -1 1 int no = -1; no -1 1 for(int i=0;i<N;i++)
    {
      int H = sc.nextInt();
      
      if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      }
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      int H = sc.nextInt();
      
      if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      }
    } {
      int H = sc.nextInt();
      
      if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      }
    } int H = sc.nextInt(); H sc.nextInt() sc.nextInt sc if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      } diff == -1 || diff > Math.abs(H-x) diff == -1 diff -1 1 diff > Math.abs(H-x) diff Math.abs(H-x) Math.abs Math H-x H x {
        diff = Math.abs(H-x);
        no = i + 1;
      } diff = Math.abs(H-x) diff Math.abs(H-x) Math.abs Math H-x H x no = i + 1 no i + 1 i 1 System.out.println(no) System.out.println System.out System System.out no 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 x = (T - A) *1000 / 6;
    double diff = -1;
    int no = -1;
    
    for(int i=0;i<N;i++)
    {
      int H = sc.nextInt();
      
      if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      }
    }
    System.out.println(no);
  }
} 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 x = (T - A) *1000 / 6;
    double diff = -1;
    int no = -1;
    
    for(int i=0;i<N;i++)
    {
      int H = sc.nextInt();
      
      if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      }
    }
    System.out.println(no);
  }
} 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 x = (T - A) *1000 / 6;
    double diff = -1;
    int no = -1;
    
    for(int i=0;i<N;i++)
    {
      int H = sc.nextInt();
      
      if (diff == -1 || diff > Math.abs(H-x) ){
        diff = Math.abs(H-x);
        no = i + 1;
      }
    }
    System.out.println(no);
  }
}