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 = 0;
    double sa = 1000000;
    for(int i = 0; i < n; i++) {
      double h = sc.nextDouble();
      double s = Math.abs(a - (t - h * 0.006));
      if(s < sa) {
        sa = s;
        ans = (i + 1);
      }
    }
    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 = 0;
    double sa = 1000000;
    for(int i = 0; i < n; i++) {
      double h = sc.nextDouble();
      double s = Math.abs(a - (t - h * 0.006));
      if(s < sa) {
        sa = s;
        ans = (i + 1);
      }
    }
    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 = 0;
    double sa = 1000000;
    for(int i = 0; i < n; i++) {
      double h = sc.nextDouble();
      double s = Math.abs(a - (t - h * 0.006));
      if(s < sa) {
        sa = s;
        ans = (i + 1);
      }
    }
    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 = 0;
    double sa = 1000000;
    for(int i = 0; i < n; i++) {
      double h = sc.nextDouble();
      double s = Math.abs(a - (t - h * 0.006));
      if(s < sa) {
        sa = s;
        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 double t = sc.nextDouble(); t sc.nextDouble() sc.nextDouble sc double a = sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc int ans = 0; ans 0 double sa = 1000000; sa 1000000 for(int i = 0; i < n; i++) {
      double h = sc.nextDouble();
      double s = Math.abs(a - (t - h * 0.006));
      if(s < sa) {
        sa = s;
        ans = (i + 1);
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      double h = sc.nextDouble();
      double s = Math.abs(a - (t - h * 0.006));
      if(s < sa) {
        sa = s;
        ans = (i + 1);
      }
    } {
      double h = sc.nextDouble();
      double s = Math.abs(a - (t - h * 0.006));
      if(s < sa) {
        sa = s;
        ans = (i + 1);
      }
    } double h = sc.nextDouble(); h sc.nextDouble() sc.nextDouble sc double s = Math.abs(a - (t - h * 0.006)); s Math.abs(a - (t - h * 0.006)) Math.abs Math a - (t - h * 0.006) a (t - h * 0.006) t h * 0.006 h 0.006 if(s < sa) {
        sa = s;
        ans = (i + 1);
      } s < sa s sa {
        sa = s;
        ans = (i + 1);
      } sa = s sa s 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();
    double t = sc.nextDouble();
    double a = sc.nextDouble();
    int ans = 0;
    double sa = 1000000;
    for(int i = 0; i < n; i++) {
      double h = sc.nextDouble();
      double s = Math.abs(a - (t - h * 0.006));
      if(s < sa) {
        sa = s;
        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();
    double t = sc.nextDouble();
    double a = sc.nextDouble();
    int ans = 0;
    double sa = 1000000;
    for(int i = 0; i < n; i++) {
      double h = sc.nextDouble();
      double s = Math.abs(a - (t - h * 0.006));
      if(s < sa) {
        sa = s;
        ans = (i + 1);
      }
    }
    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 = 0;
    double sa = 1000000;
    for(int i = 0; i < n; i++) {
      double h = sc.nextDouble();
      double s = Math.abs(a - (t - h * 0.006));
      if(s < sa) {
        sa = s;
        ans = (i + 1);
      }
    }
    System.out.println(ans);
  }
}