import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    int A = Integer.parseInt(sc.next());
    
    double min = 10000.0;
    int ans = 0;
    for(int i = 1; i <= N; i++){
      int x = Integer.parseInt(sc.next());
      double d = T - x*0.006;
      double e = Math.abs(A-d);
      if(e < min){
        min = e;
        ans = i;
      }
    }
    System.out.println(ans);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    int A = Integer.parseInt(sc.next());
    
    double min = 10000.0;
    int ans = 0;
    for(int i = 1; i <= N; i++){
      int x = Integer.parseInt(sc.next());
      double d = T - x*0.006;
      double e = Math.abs(A-d);
      if(e < min){
        min = e;
        ans = i;
      }
    }
    System.out.println(ans);
  }
} Main public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    int A = Integer.parseInt(sc.next());
    
    double min = 10000.0;
    int ans = 0;
    for(int i = 1; i <= N; i++){
      int x = Integer.parseInt(sc.next());
      double d = T - x*0.006;
      double e = Math.abs(A-d);
      if(e < min){
        min = e;
        ans = i;
      }
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    int A = Integer.parseInt(sc.next());
    
    double min = 10000.0;
    int ans = 0;
    for(int i = 1; i <= N; i++){
      int x = Integer.parseInt(sc.next());
      double d = T - x*0.006;
      double e = Math.abs(A-d);
      if(e < min){
        min = e;
        ans = i;
      }
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int T = Integer.parseInt(sc.next()); T Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double min = 10000.0; min 10000.0 int ans = 0; ans 0 for(int i = 1; i <= N; i++){
      int x = Integer.parseInt(sc.next());
      double d = T - x*0.006;
      double e = Math.abs(A-d);
      if(e < min){
        min = e;
        ans = i;
      }
    } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
      int x = Integer.parseInt(sc.next());
      double d = T - x*0.006;
      double e = Math.abs(A-d);
      if(e < min){
        min = e;
        ans = i;
      }
    } {
      int x = Integer.parseInt(sc.next());
      double d = T - x*0.006;
      double e = Math.abs(A-d);
      if(e < min){
        min = e;
        ans = i;
      }
    } int x = Integer.parseInt(sc.next()); x Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double d = T - x*0.006; d T - x*0.006 T x*0.006 x 0.006 double e = Math.abs(A-d); e Math.abs(A-d) Math.abs Math A-d A d if(e < min){
        min = e;
        ans = i;
      } e < min e min {
        min = e;
        ans = i;
      } min = e min e ans = i ans i 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 = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    int A = Integer.parseInt(sc.next());
    
    double min = 10000.0;
    int ans = 0;
    for(int i = 1; i <= N; i++){
      int x = Integer.parseInt(sc.next());
      double d = T - x*0.006;
      double e = Math.abs(A-d);
      if(e < min){
        min = e;
        ans = i;
      }
    }
    System.out.println(ans);
  }
} public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    int A = Integer.parseInt(sc.next());
    
    double min = 10000.0;
    int ans = 0;
    for(int i = 1; i <= N; i++){
      int x = Integer.parseInt(sc.next());
      double d = T - x*0.006;
      double e = Math.abs(A-d);
      if(e < min){
        min = e;
        ans = i;
      }
    }
    System.out.println(ans);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    int A = Integer.parseInt(sc.next());
    
    double min = 10000.0;
    int ans = 0;
    for(int i = 1; i <= N; i++){
      int x = Integer.parseInt(sc.next());
      double d = T - x*0.006;
      double e = Math.abs(A-d);
      if(e < min){
        min = e;
        ans = i;
      }
    }
    System.out.println(ans);
  }
}