import java.util.*;

public 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();
    int ans = 1;
    double s = 1000000;
    for(int i = 1; i <= n; i++) {
      double x = sc.nextDouble();
      double t1 = t - (x * (double)6) / (double)1000;
      double s1 = Math.abs(t1 - a);
      if(s1 < s) {
        ans = i;
        s = s1;
      }
    }
    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 = sc.nextInt();
    double t = sc.nextDouble();
    double a = sc.nextDouble();
    int ans = 1;
    double s = 1000000;
    for(int i = 1; i <= n; i++) {
      double x = sc.nextDouble();
      double t1 = t - (x * (double)6) / (double)1000;
      double s1 = Math.abs(t1 - a);
      if(s1 < s) {
        ans = i;
        s = s1;
      }
    }
    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();
    int ans = 1;
    double s = 1000000;
    for(int i = 1; i <= n; i++) {
      double x = sc.nextDouble();
      double t1 = t - (x * (double)6) / (double)1000;
      double s1 = Math.abs(t1 - a);
      if(s1 < s) {
        ans = i;
        s = s1;
      }
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    double t = sc.nextDouble();
    double a = sc.nextDouble();
    int ans = 1;
    double s = 1000000;
    for(int i = 1; i <= n; i++) {
      double x = sc.nextDouble();
      double t1 = t - (x * (double)6) / (double)1000;
      double s1 = Math.abs(t1 - a);
      if(s1 < s) {
        ans = i;
        s = s1;
      }
    }
    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 int ans = 1; ans 1 double s = 1000000; s 1000000 for(int i = 1; i <= n; i++) {
      double x = sc.nextDouble();
      double t1 = t - (x * (double)6) / (double)1000;
      double s1 = Math.abs(t1 - a);
      if(s1 < s) {
        ans = i;
        s = s1;
      }
    } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
      double x = sc.nextDouble();
      double t1 = t - (x * (double)6) / (double)1000;
      double s1 = Math.abs(t1 - a);
      if(s1 < s) {
        ans = i;
        s = s1;
      }
    } {
      double x = sc.nextDouble();
      double t1 = t - (x * (double)6) / (double)1000;
      double s1 = Math.abs(t1 - a);
      if(s1 < s) {
        ans = i;
        s = s1;
      }
    } double x = sc.nextDouble(); x sc.nextDouble() sc.nextDouble sc double t1 = t - (x * (double)6) / (double)1000; t1 t - (x * (double)6) / (double)1000 t (x * (double)6) / (double)1000 (x * (double)6) x (double)6 (double)1000 double s1 = Math.abs(t1 - a); s1 Math.abs(t1 - a) Math.abs Math t1 - a t1 a if(s1 < s) {
        ans = i;
        s = s1;
      } s1 < s s1 s {
        ans = i;
        s = s1;
      } ans = i ans i s = s1 s s1 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();
    double t = sc.nextDouble();
    double a = sc.nextDouble();
    int ans = 1;
    double s = 1000000;
    for(int i = 1; i <= n; i++) {
      double x = sc.nextDouble();
      double t1 = t - (x * (double)6) / (double)1000;
      double s1 = Math.abs(t1 - a);
      if(s1 < s) {
        ans = i;
        s = s1;
      }
    }
    System.out.println(ans);
  }
} public 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();
    int ans = 1;
    double s = 1000000;
    for(int i = 1; i <= n; i++) {
      double x = sc.nextDouble();
      double t1 = t - (x * (double)6) / (double)1000;
      double s1 = Math.abs(t1 - a);
      if(s1 < s) {
        ans = i;
        s = s1;
      }
    }
    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 = sc.nextInt();
    double t = sc.nextDouble();
    double a = sc.nextDouble();
    int ans = 1;
    double s = 1000000;
    for(int i = 1; i <= n; i++) {
      double x = sc.nextDouble();
      double t1 = t - (x * (double)6) / (double)1000;
      double s1 = Math.abs(t1 - a);
      if(s1 < s) {
        ans = i;
        s = s1;
      }
    }
    System.out.println(ans);
  }
}